[pitivi: 7/14] timeline: always set caps on FixSeekStart:sink.
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 7/14] timeline: always set caps on FixSeekStart:sink.
- Date: Fri, 1 Oct 2010 12:16:46 +0000 (UTC)
commit e6f3cb1425ff364d85f59f73b7f51b6de929b882
Author: Alessandro Decina <alessandro d gmail com>
Date: Mon Sep 27 17:30:52 2010 +0200
timeline: always set caps on FixSeekStart:sink.
This is needed so get_pad_for_stream, called once we ghost FixSeekStart:src,
knows what stream to instantiate.
pitivi/factories/timeline.py | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/factories/timeline.py b/pitivi/factories/timeline.py
index 90f7484..ea91576 100644
--- a/pitivi/factories/timeline.py
+++ b/pitivi/factories/timeline.py
@@ -138,9 +138,12 @@ class TimelineSourceFactory(SourceFactory):
caps = pad.props.caps
if caps is None:
caps = pad.get_caps()
- if caps.is_fixed():
- seek.get_pad("sink").set_caps(caps)
- ghost.set_caps(caps)
+ if not caps.is_fixed():
+ # still set some caps so get_stream_for_pad knows what kind of
+ # stream this is
+ caps = gst.Caps(caps[0].get_name())
+ seek.get_pad("sink").set_caps(caps)
+ ghost.set_caps(caps)
ghost.set_active(True)
self.ghosts[pad_id] = ghost
self.seek_checkers[pad_id] = seek
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]