[pitivi] track.py: sets start/end keyframes to {in, out}_point in constructor fixes gst_controller assertion w
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] track.py: sets start/end keyframes to {in, out}_point in constructor fixes gst_controller assertion w
- Date: Fri, 22 Jan 2010 18:04:17 +0000 (UTC)
commit a9c23663eed98dd57b0995b658aa915b143f2aa0
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Jan 8 12:00:45 2010 -0800
track.py: sets start/end keyframes to {in,out}_point in constructor
fixes gst_controller assertion warnings because we don't later try to unset a
time that was never set.
pitivi/timeline/track.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index 9603cc4..f91a265 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -159,9 +159,14 @@ class Interpolator(Signallable, Loggable):
self.start = FixedKeyframe(self)
self.end = FixedKeyframe(self)
self.start.value = self._default
- self.start.setObjectTime(0)
+ self.start.setObjectTime(trackobject.in_point)
+ self._keyframeTimeValueChanged(self.start, 0, self.start.value)
self.end.value = self._default
- self.end.setObjectTime(trackobject.factory.duration)
+ if trackobject.in_point == trackobject.out_point:
+ self.end.setObjectTime(trackobject.in_point + 1)
+ else:
+ self.end.setObjectTime(trackobject.out_point)
+ self._keyframeTimeValueChanged(self.end, self.end.time, self.end.value)
def attachToElementProperty(self, prop, element):
self._element = element
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]