From 41733d82964d0865aecdbb07af68b52103d6637e Mon Sep 17 00:00:00 2001 From: David Corvoysier Date: Fri, 19 Oct 2012 15:42:51 +0200 Subject: [PATCH] Fixed wrong index in fragments --- ext/dash/gstdashdemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 9c9a6ba..bf1655a 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -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); -- 2.7.4