summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2015-08-16 12:53:02 +0200
committerEdward Hervey <bilboed@bilboed.com>2015-08-16 12:53:23 +0200
commit7fc856ff5c2541493a2411d7b87cd7c6d012b955 (patch)
treea55b90db9b299acba8d1c24db72df6300068e6a5
parenteaf9ca90c7000f5c7156d13969b9135f7273fa79 (diff)
decodebin: Fix list iteration
We were using the wrong variable ... CID #1316477
-rw-r--r--gst/playback/gstdecodebin2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c
index 5bec1bf97..85a2ed188 100644
--- a/gst/playback/gstdecodebin2.c
+++ b/gst/playback/gstdecodebin2.c
@@ -2048,7 +2048,7 @@ demuxer_source_pad_probe (GstPad * pad, GstPadProbeInfo * info,
GList *tmp2;
GstDecodeGroup *tmpgroup = (GstDecodeGroup *) tmp->data;
if (tmpgroup != group) {
- for (tmp2 = tmpgroup->reqpads; tmp; tmp = tmp->next) {
+ for (tmp2 = tmpgroup->reqpads; tmp2; tmp2 = tmp2->next) {
GstPad *reqpad = (GstPad *) tmp2->data;
gst_pad_send_event (reqpad, gst_event_ref (event));
}