[pitivi] project: Serialize the setting of GES.Track.restriction_caps



commit bf27d8c84b724e0e648056156f8ed4bcba7afbdb
Author: Thibault Saunier <tsaunier gnome org>
Date:   Thu Sep 25 17:34:09 2014 +0200

    project: Serialize the setting of GES.Track.restriction_caps
    
    https://bugzilla.gnome.org/show_bug.cgi?id=739251

 pitivi/project.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index f84d41d..80726bc 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -997,6 +997,11 @@ class Project(Loggable, GES.Project):
         for track in self.timeline.get_tracks():
             if isinstance(track, GES.VideoTrack):
                 track.set_restriction_caps(caps)
+        st = Gst.Structure.new_empty("set-track-restriction-caps")
+        st["caps"] = caps.to_string()
+        st["track-type"] = GES.TrackType.VIDEO.value_nicks[0]
+        self.app.write_action(st)
+
         self.pipeline.flushSeek()
 
     def addUris(self, uris):


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