[pitivi] viewer: Remove unused sink field



commit c7bc0e6d7aaa4128dc3ed22b3d06cacb60c550d8
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Apr 18 19:04:06 2016 +0200

    viewer: Remove unused sink field
    
    Differential Revision: https://phabricator.freedesktop.org/D943

 pitivi/viewer/viewer.py |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/pitivi/viewer/viewer.py b/pitivi/viewer/viewer.py
index 0aa1350..f72eda3 100644
--- a/pitivi/viewer/viewer.py
+++ b/pitivi/viewer/viewer.py
@@ -137,8 +137,7 @@ class ViewerContainer(Gtk.Box, Loggable):
         self.pipeline.pause()
 
     def __createNewViewer(self):
-        self.sink = self.pipeline.createSink()
-        self.pipeline.setSink(self.sink)
+        self.pipeline.setSink(self.pipeline.createSink())
 
         self.target = ViewerWidget(self.pipeline, self.app)
 
@@ -490,8 +489,6 @@ class ViewerWidget(Gtk.AspectFrame, Loggable):
     @type _pipeline: L{pitivi.utils.pipeline.SimplePipeline}
     """
 
-    __gsignals__ = {}
-
     def __init__(self, pipeline, app=None):
         # Prevent black frames and flickering while resizing or changing focus:
         # The aspect ratio gets overridden by setDisplayAspectRatio.
@@ -519,11 +516,6 @@ class ViewerWidget(Gtk.AspectFrame, Loggable):
     def setDisplayAspectRatio(self, ratio):
         self.set_property("ratio", float(ratio))
 
-    def _sizeCb(self, unused_widget, unused_area):
-        # The transformation box is cleared when using regular rendering
-        # so we need to flush the pipeline
-        self._pipeline.flushSeek()
-
     def do_get_preferred_width(self):
         # Do not let a chance for Gtk to choose video natural size
         # as we want to have full control


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