[pitivi: 10/13] Don't put the FixSeekStart element in the timeline
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi: 10/13] Don't put the FixSeekStart element in the timeline
- Date: Mon, 16 Mar 2009 08:04:40 -0400 (EDT)
commit d775a89acc29866c171e2eb0f147d3a927b82531
Author: Alessandro Decina <alessandro decina collabora co uk>
Date: Wed Mar 11 19:19:08 2009 +0100
Don't put the FixSeekStart element in the timeline pipeline with gst-python <= 0.10.14, as it triggers a bug in basetransform.
---
pitivi/factories/timeline.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/pitivi/factories/timeline.py b/pitivi/factories/timeline.py
index f8ec52c..5a8547e 100644
--- a/pitivi/factories/timeline.py
+++ b/pitivi/factories/timeline.py
@@ -49,7 +49,6 @@ class FixSeekStart(gst.BaseTransform):
event.parse_seek()
if cur_type == gst.SEEK_TYPE_SET and cur >= self.track.duration:
cur = self.track.duration - 1 * gst.NSECOND
-
new_event = gst.event_new_seek(rate, format, flags, cur_type, cur,
stop_type, stop)
event = new_event
@@ -120,7 +119,12 @@ class TimelineSourceFactory(SourceFactory):
def _newGhostPad(self, pad, track):
pad_id = str(pad)
- seek = FixSeekStart(track)
+ if gst.get_pygst_version() < (0, 10, 14, 1):
+ # in <= 0.10.14 there was a bug in basetransform (commit
+ # 83f31c7194b96ec857d6695746dd8b3fcba1846a in gst-python)
+ seek = gst.element_factory_make('identity')
+ else:
+ seek = FixSeekStart(track)
self.bin.add(seek)
seek.set_state(gst.STATE_PLAYING)
pad.link(seek.get_pad('sink'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]