From 685704807970f3b36d7eb8ec582322661ad2bef3 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Tue, 26 May 2015 15:24:52 +0100 Subject: [PATCH] adaptivedemux: 'for' loop initial declaration 'for' loop initial declarations are only allowed in C89, moving the declaration to before the 'for' loop. --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index d2996557f6..cbbc625f14 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -1983,8 +1983,9 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream) /* query other pads as some faulty element in the pad's branch might * reject position queries. This should be better than using the * demux segment position that can be much ahead */ - for (GList * iter = demux->streams; iter != NULL; - iter = g_list_next (iter)) { + GList *iter; + + for (iter = demux->streams; iter != NULL; iter = g_list_next (iter)) { GstAdaptiveDemuxStream *cur_stream = (GstAdaptiveDemuxStream *) iter->data;