From 38cc9070cd002209ae3c5c12d8bc6ec62cf84b91 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 26 Feb 2016 17:31:44 -0300 Subject: [PATCH] dashdemux: sync index and the selected chunk when seeking Otherwise the chunk selected isn't matched to the index and the timing will be different, causing it to actually start from a different position --- ext/dash/gstmpdparser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index df96c57f34..778ab2ea5d 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -4708,7 +4708,7 @@ gst_mpd_client_stream_seek (GstMpdClient * client, GstActiveStream * stream, if (index + 1 >= stream->segments->len) { selectedChunk = NULL; } else { - selectedChunk = g_ptr_array_index (stream->segments, index + 1); + selectedChunk = g_ptr_array_index (stream->segments, ++index); } } }