[pitivi] track.py: move start and end keyframes when media_{start, stop} of track object changes



commit 453e4aa2727a523011215afc6721edc1fd5e486b
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Fri Dec 18 12:57:27 2009 -0800

    track.py: move start and end keyframes when media_{start,stop} of track
    object changes
    
    note: this changes the semantics of the start, end keyframes. they are not
    longer fixed to the start and end points of the file but represent the start of the file in
    the timeline.

 pitivi/timeline/track.py |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index d1e3310..9a83a82 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -577,13 +577,19 @@ class TrackObject(Signallable, Loggable):
         self.emit('duration-changed', obj.props.duration)
 
     def _notifyMediaStartCb(self, obj, pspec):
-        self.emit('in-point-changed', obj.props.media_start)
+        start = obj.props.media_start
+        self.emit('in-point-changed', start)
+        for p, i in self.interpolators.itervalues():
+            i.updateMediaStart(start)
 
     def _notifyMediaDurationCb(self, obj, pspec):
         self.emit('media-duration-changed', obj.props.media_duration)
 
     def _notifyMediaStopCb(self, obj, pspec):
-        self.emit('out-point-changed', obj.props.media_stop)
+        stop = obj.props.media_stop
+        self.emit('out-point-changed', stop)
+        for p, i in self.interpolators.itervalues():
+            i.updateMediaStop(stop)
 
     def _notifyPriorityCb(self, obj, pspec):
         self.emit('priority-changed', obj.props.priority)



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