[pitivi] pipeline: Always emit position when EOS is reached



commit 1860872054b6debcb6f96fd5f0dfab3f3387e7eb
Author: Thibault Saunier <tsaunier gnome org>
Date:   Tue Dec 22 16:33:15 2015 +0100

    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

 pitivi/utils/pipeline.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/utils/pipeline.py b/pitivi/utils/pipeline.py
index 8fe0e88..95cb52e 100644
--- a/pitivi/utils/pipeline.py
+++ b/pitivi/utils/pipeline.py
@@ -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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]