diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2016-02-26 17:31:44 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2016-02-26 17:31:44 -0300 |
commit | 38cc9070cd002209ae3c5c12d8bc6ec62cf84b91 (patch) | |
tree | 063044b445e20db650be2d5d5bd7171a17601ea2 /ext | |
parent | c06d249049c61075a6f4e3474e5d212973537468 (diff) | |
download | gstreamer-plugins-bad-38cc9070cd002209ae3c5c12d8bc6ec62cf84b91.tar.gz |
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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dash/gstmpdparser.c | 2 |
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); } } } |