[pitivi] ui.timeline.py: only set scroll position when state == gst.STATE playing



commit f52969eda6be151c3a9101dbf4bee856b53af955
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Mon Aug 3 17:42:15 2009 -0700

    ui.timeline.py: only set scroll position when state == gst.STATE playing

 pitivi/ui/timeline.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index bd0ad40..9647513 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -370,6 +370,8 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         return False
 
     def scrollToPosition(self, position):
+        if not self._state == gst.STATE_PLAYING:
+            return
         if position > self.hadj.upper:
             # we can't perform the scroll because the canvas needs to be
             # updated



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