Fixed wrong index in fragments
authorDavid Corvoysier <david.corvoysier@orange.com>
Fri, 19 Oct 2012 13:42:51 +0000 (15:42 +0200)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 8 May 2013 21:14:03 +0000 (18:14 -0300)
ext/dash/gstdashdemux.c

index 9c9a6ba..bf1655a 100644 (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);