]>
Commit | Line | Data |
---|---|---|
fef55704 AM |
1 | diff -rup pitivi/effects.py pitivi/effects.py |
2 | --- pitivi/effects.py 2011-09-24 11:16:29.000000000 -0400 | |
3 | +++ pitivi/effects.py 2011-11-18 11:09:21.475474154 -0500 | |
4 | @@ -187,9 +187,13 @@ class EffectsHandler(object): | |
5 | ||
6 | if padTmp.direction == gst.PAD_SRC: | |
7 | stream = get_stream_for_pad(pad) | |
8 | + if stream is None: | |
9 | + continue | |
10 | factory.addInputStream(stream) | |
11 | elif padTmp.direction == gst.PAD_SINK: | |
12 | stream = get_stream_for_pad(pad) | |
13 | + if stream is None: | |
14 | + continue | |
15 | factory.addOutputStream(stream) | |
16 | return True | |
17 | ||
18 | diff -rup pitivi/stream.py pitivi/stream.py | |
19 | --- pitivi/stream.py 2011-09-24 11:16:29.000000000 -0400 | |
20 | +++ pitivi/stream.py 2011-11-18 11:09:43.524670882 -0500 | |
21 | @@ -370,6 +370,8 @@ def get_stream_for_pad(pad, store_pad=Fa | |
22 | caps = pad.get_caps() | |
23 | pad_id = get_pad_id(pad) | |
24 | stream = get_stream_for_caps(caps, pad) | |
25 | + if stream is None: | |
26 | + return None | |
27 | stream.pad_id = pad_id | |
28 | if store_pad: | |
29 | stream.pad = pad |