[pitivi: 7/14] viewer: Make disconnection from mirror connection to a pipeline



commit 78132987ba47669651ccae3a1e927a6b2d041cea
Author: Robert Swain <robert swain collabora co uk>
Date:   Wed Aug 25 11:48:47 2010 +0200

    viewer: Make disconnection from mirror connection to a pipeline

 pitivi/ui/viewer.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/viewer.py b/pitivi/ui/viewer.py
index 75ae1c7..095cc41 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -159,9 +159,12 @@ class PitiviViewer(gtk.VBox, Loggable):
                 self.action.deactivate()
             self.pipeline.removeAction(self.action)
 
+        self.deactivatePositionListener()
         self.pipeline.disconnect_by_function(self._posCb)
+        self.pipeline.disconnect_by_function(self._currentStateCb)
         self.pipeline.disconnect_by_function(self._elementMessageCb)
-        #self.deactivatePositionListener()
+        self.pipeline.disconnect_by_function(self._durationChangedCb)
+        self.pipeline.disconnect_by_function(self._eosCb)
         self.pipeline.stop()
 
         self.pipeline = None



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