mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
uridecodebin: restore FLOATING flag when reusing decodebin instance
... which avoids leaking these due to an extra ref later on.
This commit is contained in:
parent
7ff608889a
commit
5fee17ac8f
1 changed files with 2 additions and 0 deletions
|
@ -1513,6 +1513,8 @@ remove_decoders (GstURIDecodeBin * bin, gboolean force)
|
|||
caps = DEFAULT_CAPS;
|
||||
g_object_set (decoder, "caps", caps, NULL);
|
||||
gst_caps_unref (caps);
|
||||
/* make it freshly floating again */
|
||||
GST_OBJECT_FLAG_SET (decoder, GST_OBJECT_FLOATING);
|
||||
|
||||
bin->pending_decodebins =
|
||||
g_slist_prepend (bin->pending_decodebins, decoder);
|
||||
|
|
Loading…
Reference in a new issue