pitivi r1358 - trunk/pitivi/timeline
- From: edwardrv svn gnome org
- To: svn-commits-list gnome org
- Subject: pitivi r1358 - trunk/pitivi/timeline
- Date: Mon, 3 Nov 2008 12:29:17 +0000 (UTC)
Author: edwardrv
Date: Mon Nov 3 12:29:16 2008
New Revision: 1358
URL: http://svn.gnome.org/viewvc/pitivi?rev=1358&view=rev
Log:
TimelineObject: make sure the subclasses have provided a GnlObject
Modified:
trunk/pitivi/timeline/objects.py
Modified: trunk/pitivi/timeline/objects.py
==============================================================================
--- trunk/pitivi/timeline/objects.py (original)
+++ trunk/pitivi/timeline/objects.py Mon Nov 3 12:29:16 2008
@@ -421,7 +421,10 @@
self._factory = factory
if not self.__requires_factory__ or self._factory:
gst.log("%r Creating associated gnlobject" % self)
- self.gnlobject = self._makeGnlObject()
+ tmpgnl = self._makeGnlObject()
+ if tmpgnl == None:
+ raise Exception("We didn't get gnlobject for %r" % self)
+ self.gnlobject = tmpgnl
self.gnlobject.log("got gnlobject !")
self.gnlobject.connect("notify::start", self._startDurationChangedCb)
self.gnlobject.connect("notify::duration", self._startDurationChangedCb)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]