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
@ -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…
x
Reference in New Issue
Block a user