[pitivi] mainwindow.py, test_integration.py: issue preliminary seek on timeline



commit 837f0d73b7d510b695ee1c9a1cb961c779ad6534
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Wed Dec 9 15:10:10 2009 -0800

    mainwindow.py,test_integration.py: issue preliminary seek on timeline
    closes bugs 603045, 603424, 603102

 pitivi/ui/mainwindow.py   |    3 +++
 tests/test_integration.py |    5 +----
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index c3d152e..02de0e0 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -693,6 +693,9 @@ class PitiviMainWindow(gtk.Window, Loggable):
 
         self.project.seeker.connect("seek", self._timelineSeekCb)
 
+        # preliminary seek to ensure the project pipeline is configured
+        self.project.seeker.seek(0)
+
     def _setBestZoomRatio(self):
         ruler_width = self.timeline.ruler.get_allocation()[2]
         timeline_duration = self.project.timeline.duration
diff --git a/tests/test_integration.py b/tests/test_integration.py
index f53a222..416be2e 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -608,10 +608,7 @@ class TestSeeking(Base):
         self.runner.loadConfiguration(self.config)
 
         def timelineConfigured(runner):
-            self.runner.instance.gui._timelineRulerSeekCb(
-                self.runner.instance.gui.timeline.ruler,
-                gst.SECOND)
-            gobject.timeout_add(1000, self._startSeeking, 100, 10)
+            self._startSeeking(100, 10)
 
         def timelineConfiguredNoUI(runner):
             self.runner.shutDown()



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