[pitivi/ges: 31/287] Handle setting pipeline to pause properly
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 31/287] Handle setting pipeline to pause properly
- Date: Thu, 15 Mar 2012 16:28:26 +0000 (UTC)
commit 840c4b9c644584b33cd45067a9f65b7853034fa2
Author: Mathieu Duponchelle <seeed laposte net>
Date: Wed Aug 31 20:54:51 2011 +0200
Handle setting pipeline to pause properly
pitivi/ui/mainwindow.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 57b4580..6084d65 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -714,7 +714,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
# Add gst.SECOND - 1 to the timeline duration to make sure the
# last second of the timeline will be in view.
tracks = self.project.timeline.get_tracks()
- duration = max (tracks[0].props.duration, tracks[1].props.duration)
+ duration = max(tracks[0].get_property("duration"), tracks[1].get_property("duration"))
self.project.timeline.duration = duration
timeline_duration = duration + gst.SECOND - 1
timeline_duration_s = int(timeline_duration / gst.SECOND)
@@ -1081,7 +1081,6 @@ class PitiviMainWindow(gtk.Window, Loggable):
self.viewer.setDisplayAspectRatio(float(sett.videopar * sett.videowidth) / float(sett.videoheight))
# everything above only needs to be done if the viewer isn't already
# set to the pipeline.
- self.project.pipeline.pause()
try:
self.project.pipeline.seek(position, format)
except:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]