dashdemux: Find current segment in the streams that have just been setup

Using demux->streams will just skip the whole loop as demux->streams will
always be NULL at that point

https://bugzilla.gnome.org/show_bug.cgi?id=741285
This commit is contained in:
David Waring 2014-12-05 16:20:08 +00:00 committed by Thiago Santos
parent 8e2964ee59
commit b03acbf584

View file

@ -531,7 +531,7 @@ gst_dash_demux_setup_streams (GstAdaptiveDemux * demux)
gint seg_idx;
GST_DEBUG_OBJECT (demux, "Seeking to current time of day for live stream ");
for (iter = demux->streams; iter; iter = g_list_next (iter)) {
for (iter = demux->next_streams; iter; iter = g_list_next (iter)) {
GstDashDemuxStream *stream = iter->data;
GstActiveStream *active_stream = stream->active_stream;