mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
decodebin3: Fix caps and stream leaks
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6858>
This commit is contained in:
parent
0a2e0a4f64
commit
b01305f60c
3 changed files with 6 additions and 0 deletions
|
@ -745,6 +745,8 @@ gst_decodebin3_dispose (GObject * object)
|
|||
}
|
||||
INPUT_UNLOCK (dbin);
|
||||
|
||||
gst_clear_caps (&dbin->caps);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
|
|
|
@ -945,6 +945,8 @@ gst_uri_decode_bin3_dispose (GObject * obj)
|
|||
|
||||
g_mutex_clear (&dec->play_items_lock);
|
||||
|
||||
gst_clear_caps (&dec->caps);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->dispose (obj);
|
||||
}
|
||||
|
||||
|
@ -1308,6 +1310,7 @@ uri_src_probe (GstPad * pad, GstPadProbeInfo * info, GstSourcePad * srcpad)
|
|||
stream);
|
||||
gst_object_replace ((GstObject **) & srcpad->stream,
|
||||
(GstObject *) stream);
|
||||
gst_object_unref (stream);
|
||||
}
|
||||
|
||||
/* Remember whether upstream is selectable or not */
|
||||
|
|
|
@ -844,6 +844,7 @@ new_demuxer_pad_added_cb (GstElement * element, GstPad * pad,
|
|||
|
||||
if (stream) {
|
||||
slot = find_replacement_slot (info, stream);
|
||||
gst_object_unref (stream);
|
||||
if (slot) {
|
||||
GST_DEBUG_OBJECT (pad, "Can re-use slot %s:%s",
|
||||
GST_DEBUG_PAD_NAME (slot->originating_pad));
|
||||
|
|
Loading…
Reference in a new issue