pitivi r1427 - trunk/pitivi/timeline
- From: edwardrv svn gnome org
- To: svn-commits-list gnome org
- Subject: pitivi r1427 - trunk/pitivi/timeline
- Date: Fri, 28 Nov 2008 17:37:21 +0000 (UTC)
Author: edwardrv
Date: Fri Nov 28 17:37:20 2008
New Revision: 1427
URL: http://svn.gnome.org/viewvc/pitivi?rev=1427&view=rev
Log:
pitivi/timeline : use .duration to get the duration of a factory, and not getDuration() which doesn't exist anymore
Modified:
trunk/pitivi/timeline/objects.py
trunk/pitivi/timeline/source.py
Modified: trunk/pitivi/timeline/objects.py
==============================================================================
--- trunk/pitivi/timeline/objects.py (original)
+++ trunk/pitivi/timeline/objects.py Fri Nov 28 17:37:20 2008
@@ -483,7 +483,7 @@
if duration > 0 and (not self.duration == duration or force):
duration = max(duration, 0)
if self.factory:
- duration = min(duration, self.factory.getDuration())
+ duration = min(duration, self.factory.duration)
self._duration = duration
self.gnlobject.set_property("duration", long(duration))
if not start == gst.CLOCK_TIME_NONE and (not self.start == start or force):
Modified: trunk/pitivi/timeline/source.py
==============================================================================
--- trunk/pitivi/timeline/source.py (original)
+++ trunk/pitivi/timeline/source.py Fri Nov 28 17:37:20 2008
@@ -107,7 +107,7 @@
gst.TIME_ARGS(self.media_start),
gst.TIME_ARGS(self.media_duration)))
if duration > 0 and not self.media_duration == duration:
- duration = max(0, min(duration, self.factory.getDuration()))
+ duration = max(0, min(duration, self.factory.duration))
self.gnlobject.set_property("media-duration", long(duration))
if not start == gst.CLOCK_TIME_NONE and not self.media_start == start:
start = max(0, start)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]