adaptivedemux: 'for' loop initial declaration

'for' loop initial declarations are only allowed in C89, moving the declaration
to before the 'for' loop.
This commit is contained in:
Luis de Bethencourt 2015-05-26 15:24:52 +01:00
parent 5985bc4b05
commit 6857048079

View file

@ -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;