Fixed wrong index in fragments

This commit is contained in:
David Corvoysier 2012-10-19 15:42:51 +02:00 committed by Thiago Santos
parent 8e9ba056d7
commit 41733d8296

View file

@ -1524,7 +1524,8 @@ gst_dash_demux_get_next_fragment_set (GstDashDemux * demux)
gst_mpdparser_get_active_stream_by_index (demux->client, stream_idx);
if (stream == NULL)
return FALSE;
download->index = stream->segment_idx;
/* FIXME: we should'nt fiddle with stream internals like that */
download->index = stream->segment_idx -1;
GstCaps *caps = gst_dash_demux_get_input_caps (demux, stream);