Flushing seek takes care of starting pipeline for us

This commit is contained in:
Thomas Adamcik 2010-08-19 01:34:26 +02:00
parent 1132f554c7
commit 01b854b891

View File

@ -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: