mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
matroskademux: avoid sorting NULL array of cluster positions
This commit is contained in:
parent
4279aa6a68
commit
d466f07def
1 changed files with 2 additions and 1 deletions
|
@ -5482,7 +5482,8 @@ gst_matroska_demux_parse_contents (GstMatroskaDemux * demux, GstEbmlRead * ebml)
|
|||
DEBUG_ELEMENT_STOP (demux, ebml, "SeekHead", ret);
|
||||
|
||||
/* Sort clusters by position for easier searching */
|
||||
g_array_sort (demux->clusters, (GCompareFunc) gst_matroska_cluster_compare);
|
||||
if (demux->clusters)
|
||||
g_array_sort (demux->clusters, (GCompareFunc) gst_matroska_cluster_compare);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue