mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
matroskademux: Correctly handle NULL GstIndex
This commit is contained in:
parent
0c6fba9506
commit
b35b752c41
1 changed files with 1 additions and 1 deletions
|
@ -5803,7 +5803,7 @@ gst_matroska_demux_set_index (GstElement * element, GstIndex * index)
|
|||
GST_OBJECT_LOCK (demux);
|
||||
if (demux->element_index)
|
||||
gst_object_unref (demux->element_index);
|
||||
demux->element_index = gst_object_ref (index);
|
||||
demux->element_index = index ? gst_object_ref (index) : NULL;
|
||||
GST_OBJECT_UNLOCK (demux);
|
||||
GST_DEBUG_OBJECT (demux, "Set index %" GST_PTR_FORMAT, demux->element_index);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue