From 01b854b8913b5bfb61621bf5815c266b1ce1dc3c Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Thu, 19 Aug 2010 01:34:26 +0200 Subject: [PATCH] Flushing seek takes care of starting pipeline for us --- mopidy/outputs/gstreamer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mopidy/outputs/gstreamer.py b/mopidy/outputs/gstreamer.py index c1435c2c..655487d5 100644 --- a/mopidy/outputs/gstreamer.py +++ b/mopidy/outputs/gstreamer.py @@ -193,8 +193,7 @@ class GStreamerProcess(BaseProcess): def set_position(self, position): self.gst_pipeline.seek_simple(gst.Format(gst.FORMAT_TIME), gst.SEEK_FLAG_FLUSH, position * gst.MSECOND) - self.gst_pipeline.get_state() # Block until state change - self.set_state('PLAYING') + self.gst_pipeline.get_state() def get_position(self): try: