[pitivi: 14/28] track.py: assign maximum allowable priority to default sources



commit 8fdd3eca56c00db273ce78ee33fa857f69b928d9
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Thu Dec 3 19:39:24 2009 -0800

    track.py: assign maximum allowable priority to default sources

 pitivi/timeline/track.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index d4d96d0..d953dc6 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -666,19 +666,20 @@ class Track(Signallable):
         self.mixer = self._getMixerForStream(stream)
         if self.mixer:
             self.composition.add(self.mixer)
+        self.default_sources = []
 
     def _getDefaultTrackObjectForStream(self, stream):
         if isinstance(stream, VideoStream):
             return self._getDefaultVideoTrackObject(stream)
         elif isinstance(stream, AudioStream):
             return self._getDefaultAudioTrackObject(stream)
+        track_object.props.priority = 2 ** 32 - 1
 
         return None
 
     def _getDefaultVideoTrackObject(self, stream):
         factory = VideoTestSourceFactory(pattern='black')
         track_object = SourceTrackObject(factory, stream)
-        track_object.props.priority = 2 ** 32 - 1
 
         return track_object
 



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