[pitivi: 3/4] viewer: fix bug #656591



commit 4a019d6472904e969ed6e9c7ed019cf231897b33
Author: Lubosz Sarnecki <lubosz gmail com>
Date:   Mon Aug 15 18:08:10 2011 +0200

    viewer: fix bug #656591
    
    Transformation Box is not cleared when the viewer is zoomed out and the video is played

 pitivi/ui/viewer.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/viewer.py b/pitivi/ui/viewer.py
index bac4f14..342d5b7 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -1045,7 +1045,7 @@ class ViewerWidget(gtk.DrawingArea, Loggable):
         self.pipeline = pipeline
         if state == gst.STATE_PAUSED:
             self._store_pixbuf()
-            self.renderbox()
+        self.renderbox()
 
     def motion_notify_event(self, widget, event):
         if event.get_state() & gtk.gdk.BUTTON1_MASK:
@@ -1102,7 +1102,8 @@ class ViewerWidget(gtk.DrawingArea, Loggable):
                 if self.box.area.width != self.pixbuf.get_width():
                     cr.restore()
 
-            self.box.draw(cr)
+            if self.pipeline.getState() == gst.STATE_PAUSED:
+                self.box.draw(cr)
             cr.pop_group_to_source()
             cr.paint()
 



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