mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
adaptivedemux2: Fix parent object leak
gst_object_get_parent() method is transfer-full, thus unref is needed Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3396>
This commit is contained in:
parent
7988144048
commit
9e74c728cb
1 changed files with 4 additions and 1 deletions
|
@ -652,7 +652,10 @@ gst_adaptive_demux_check_streams_aware (GstAdaptiveDemux * demux)
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
GstObject *parent = gst_object_get_parent (GST_OBJECT (demux));
|
GstObject *parent = gst_object_get_parent (GST_OBJECT (demux));
|
||||||
|
|
||||||
ret = (parent && GST_OBJECT_FLAG_IS_SET (parent, GST_BIN_FLAG_STREAMS_AWARE));
|
if (parent) {
|
||||||
|
ret = GST_OBJECT_FLAG_IS_SET (parent, GST_BIN_FLAG_STREAMS_AWARE);
|
||||||
|
gst_object_unref (parent);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue