Commit 18608720 authored by Thibault Saunier's avatar Thibault Saunier Committed by Alexandru Băluț

pipeline: Always emit position when EOS is reached

This way we make sure the playhead is properly positioned at the end of the timeline

Differential Revision: https://phabricator.freedesktop.org/D600
parent 3853f752
......@@ -381,6 +381,7 @@ class SimplePipeline(GObject.Object, Loggable):
def _busMessageCb(self, unused_bus, message):
if message.type == Gst.MessageType.EOS:
self.__emitPosition()
self.pause()
self.emit('eos')
elif message.type == Gst.MessageType.STATE_CHANGED:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment