[pitivi] project: Flush the pipeline when we set restriction caps



commit b272f07f3d6aba2c1ae95d9da26bd3ad632b12b1
Author: Thibault Saunier <tsaunier gnome org>
Date:   Sun Mar 16 11:29:32 2014 +0100

    project: Flush the pipeline when we set restriction caps
    
    This way we make sure that the viewer updates

 pitivi/project.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 41bd23c..186534b 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -889,12 +889,14 @@ class Project(Loggable, GES.Project):
 
     def update_restriction_caps(self):
         caps = Gst.Caps.new_empty_simple("video/x-raw")
+
         caps.set_value("width", self.videowidth)
         caps.set_value("height", self.videoheight)
         caps.set_value("framerate", self.videorate)
         for track in self.timeline.get_tracks():
             if isinstance(track, GES.VideoTrack):
                 track.set_restriction_caps(caps)
+        self.pipeline.flushSeek()
 
     def addUris(self, uris):
         """


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