matroskademux: avoid sorting NULL array of cluster positions
This commit is contained in:
parent
4279aa6a68
commit
d466f07def
@ -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…
x
Reference in New Issue
Block a user