pitivi r1353 - trunk/pitivi/elements
- From: edwardrv svn gnome org
- To: svn-commits-list gnome org
- Subject: pitivi r1353 - trunk/pitivi/elements
- Date: Mon, 3 Nov 2008 12:28:34 +0000 (UTC)
Author: edwardrv
Date: Mon Nov 3 12:28:33 2008
New Revision: 1353
URL: http://svn.gnome.org/viewvc/pitivi?rev=1353&view=rev
Log:
ImageFreeze: more fixups
Modified:
trunk/pitivi/elements/imagefreeze.py
Modified: trunk/pitivi/elements/imagefreeze.py
==============================================================================
--- trunk/pitivi/elements/imagefreeze.py (original)
+++ trunk/pitivi/elements/imagefreeze.py Mon Nov 3 12:28:33 2008
@@ -123,10 +123,12 @@
gst.debug("accepted !")
# 4. When we have an accepted caps downstream, we store the negotiated
# framerate and return
+ if not candidate.has_key("framerate"):
+ candidate["framerate"] = gst.Fraction(25,1)
self._outputrate = candidate["framerate"]
self._bufferduration = gst.SECOND * self._outputrate.denom / self._outputrate.num
- self._srccaps = candidate
- return self.srcpad.set_caps(candidate)
+ self._srccaps = candidate.copy()
+ return self.srcpad.set_caps(self._srccaps)
# 5. If we can't find an accepted candidate, we return False
return False
@@ -149,9 +151,12 @@
gst.debug("task paused")
self._needsegment = True
+ gst.debug("Sending FLUS_STOP event")
if flags & gst.SEEK_FLAG_FLUSH:
self.srcpad.push_event(gst.event_new_flush_stop())
+ gst.debug("Restarting our task")
self.srcpad.start_task(self._our_task)
+ gst.debug("Returning True")
return True
return self.sinkpad.push_event(event)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]