matroskademux: normalize empty Cues to no Cues

... to trigger indexless seeking.
This commit is contained in:
Mark Nauwelaerts 2010-11-02 17:04:04 +01:00
parent e09e80eb2f
commit 7be2ee8710

View file

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