pitivi r1256 - in trunk: . pitivi/ui



Author: edwardrv
Date: Fri Sep 26 17:10:56 2008
New Revision: 1256
URL: http://svn.gnome.org/viewvc/pitivi?rev=1256&view=rev

Log:
* pitivi/ui/viewer.py:
Don't update time/duration if currently playing SmartBin doesn't have
an associated objectfactory.

Modified:
   trunk/ChangeLog
   trunk/pitivi/ui/viewer.py

Modified: trunk/pitivi/ui/viewer.py
==============================================================================
--- trunk/pitivi/ui/viewer.py	(original)
+++ trunk/pitivi/ui/viewer.py	Fri Sep 26 17:10:56 2008
@@ -385,7 +385,7 @@
 
     def _currentPlaygroundChangedCb(self, playground, smartbin):
         gst.log("smartbin:%s" % smartbin)
-        if smartbin == playground.default:
+        if smartbin == playground.default or not hasattr(smartbin, "factory"):
             self.slider.set_sensitive(False)
             self.playpause_button.set_sensitive(False)
             self.next_button.set_sensitive(False)



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