[pitivi/ges] Fixed bug when opening the transformation box



commit 4708a4fc1939d537a0b29d75df3db67f5aa193fb
Author: Daniel Thul <daniel thul googlemail com>
Date:   Tue Apr 10 19:25:45 2012 +0200

    Fixed bug when opening the transformation box

 pitivi/viewer.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index 29b75d6..d419379 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -893,6 +893,8 @@ class ViewerWidget(gtk.DrawingArea, Loggable):
         self.area = None
         self.zoom = 1.0
         self.sink = None
+        self.pixbuf = None
+        self.pipeline = None
         self.transformation_properties = None
         for state in range(gtk.STATE_INSENSITIVE + 1):
             self.modify_bg(state, self.style.black)
@@ -1045,7 +1047,7 @@ class ViewerWidget(gtk.DrawingArea, Loggable):
                 if self.box.area.width != self.pixbuf.get_width():
                     cr.restore()
 
-            if self.pipeline.get_state() == gst.STATE_PAUSED:
+            if self.pipeline and self.pipeline.get_state()[1] == 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]