[pitivi: 20/28] track.py: add bin to gnlobject and set priority when making default sources



commit 61a977c420d9ed8e1aeff74b50fd028451563e9e
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Fri Dec 4 13:12:58 2009 -0800

    track.py: add bin to gnlobject and set priority when making default sources

 pitivi/timeline/track.py |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index a478959..29ad9fa 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -676,12 +676,16 @@ class Track(Signallable):
 
     def _getDefaultTrackObjectForStream(self, stream):
         if isinstance(stream, VideoStream):
-            return self._getDefaultVideoTrackObject(stream)
+            ret = self._getDefaultVideoTrackObject(stream)
         elif isinstance(stream, AudioStream):
-            return self._getDefaultAudioTrackObject(stream)
-        track_object.props.priority = 2 ** 32 - 1
+            ret = self._getDefaultAudioTrackObject(stream)
+        else:
+            return None
 
-        return None
+        ret.priority = 2 ** 32 - 1
+        ret.makeBin()
+
+        return ret
 
     def _getDefaultVideoTrackObject(self, stream):
         factory = VideoTestSourceFactory(pattern='black')



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