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
This commit is contained in:
Thiago Santos 2016-02-26 17:31:44 -03:00
parent c06d249049
commit 38cc9070cd

View file

@ -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);
}
}
}