summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2016-02-26 17:31:44 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2016-02-26 17:31:44 -0300
commit38cc9070cd002209ae3c5c12d8bc6ec62cf84b91 (patch)
tree063044b445e20db650be2d5d5bd7171a17601ea2
parentc06d249049c61075a6f4e3474e5d212973537468 (diff)
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
-rw-r--r--ext/dash/gstmpdparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c
index df96c57f3..778ab2ea5 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);
}
}
}