From 7fc856ff5c2541493a2411d7b87cd7c6d012b955 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 16 Aug 2015 12:53:02 +0200 Subject: [PATCH] decodebin: Fix list iteration We were using the wrong variable ... CID #1316477 --- gst/playback/gstdecodebin2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 5bec1bf..85a2ed1 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)); } -- 2.7.4