[pitivi] viewer: Get the seeker instance once



commit 2dce952af0934c9cd3f377ca185ad3c4087bcb11
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Jan 13 18:44:00 2014 +0100

    viewer: Get the seeker instance once

 pitivi/viewer.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index 6ccb324..9a2baed 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -94,6 +94,7 @@ class ViewerContainer(Gtk.VBox, Loggable):
         self.pipeline = None
         self.sink = None
         self.docked = True
+        self.seeker = Seeker()
 
         # Only used for restoring the pipeline position after a live clip trim preview:
         self._oldTimelinePos = None
@@ -126,8 +127,6 @@ class ViewerContainer(Gtk.VBox, Loggable):
         @param position: Optional position to seek to initially.
         """
         self.debug("self.pipeline: %r", self.pipeline)
-
-        self.seeker = Seeker()
         self._disconnectFromPipeline()
 
         self.pipeline = pipeline


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