mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 04:11:26 +00:00
matroskademux: normalize empty Cues to no Cues
... to trigger indexless seeking.
This commit is contained in:
parent
e09e80eb2f
commit
7be2ee8710
1 changed files with 6 additions and 0 deletions
|
@ -3441,6 +3441,12 @@ gst_matroska_demux_parse_index (GstMatroskaDemux * demux, GstEbmlRead * ebml)
|
|||
|
||||
demux->index_parsed = TRUE;
|
||||
|
||||
/* sanity check; empty index normalizes to no index */
|
||||
if (demux->index->len == 0) {
|
||||
g_array_free (demux->index, TRUE);
|
||||
demux->index = NULL;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue