mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
c06d249049
commit
38cc9070cd
1 changed files with 1 additions and 1 deletions
|
@ -4708,7 +4708,7 @@ gst_mpd_client_stream_seek (GstMpdClient * client, GstActiveStream * stream,
|
||||||
if (index + 1 >= stream->segments->len) {
|
if (index + 1 >= stream->segments->len) {
|
||||||
selectedChunk = NULL;
|
selectedChunk = NULL;
|
||||||
} else {
|
} else {
|
||||||
selectedChunk = g_ptr_array_index (stream->segments, index + 1);
|
selectedChunk = g_ptr_array_index (stream->segments, ++index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue