pitivi r1188 - in branches/SOC_2008_SLAKSHMAN: . pitivi/ui



Author: edwardrv
Date: Fri Jul 18 16:59:48 2008
New Revision: 1188
URL: http://svn.gnome.org/viewvc/pitivi?rev=1188&view=rev

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


Modified:
   branches/SOC_2008_SLAKSHMAN/ChangeLog
   branches/SOC_2008_SLAKSHMAN/pitivi/ui/viewer.py

Modified: branches/SOC_2008_SLAKSHMAN/pitivi/ui/viewer.py
==============================================================================
--- branches/SOC_2008_SLAKSHMAN/pitivi/ui/viewer.py	(original)
+++ branches/SOC_2008_SLAKSHMAN/pitivi/ui/viewer.py	Fri Jul 18 16:59:48 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]