mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 15:36:42 +00:00
decodebin3: fix collection leak
The collection owned by GstDecodebin3 has to be unreffed when disposing. gst_event_new_stream_collection() doesn't consume the collection passed to it so no need to give it an extra ref. https://bugzilla.gnome.org/show_bug.cgi?id=768811
This commit is contained in:
parent
c1db195ba5
commit
83f30627cd
2 changed files with 2 additions and 2 deletions
|
@ -584,6 +584,7 @@ gst_decodebin3_dispose (GObject * object)
|
||||||
g_list_free (dbin->active_selection);
|
g_list_free (dbin->active_selection);
|
||||||
g_list_free (dbin->to_activate);
|
g_list_free (dbin->to_activate);
|
||||||
g_list_free (dbin->pending_select_streams);
|
g_list_free (dbin->pending_select_streams);
|
||||||
|
g_clear_object (&dbin->collection);
|
||||||
|
|
||||||
free_input (dbin, dbin->main_input);
|
free_input (dbin, dbin->main_input);
|
||||||
/* FIXME : GO OVER INPUTS */
|
/* FIXME : GO OVER INPUTS */
|
||||||
|
|
|
@ -3611,8 +3611,7 @@ retry:
|
||||||
* and post a stream-collection onto the bus */
|
* and post a stream-collection onto the bus */
|
||||||
if (parsepad->active_collection == NULL && fallback_collection) {
|
if (parsepad->active_collection == NULL && fallback_collection) {
|
||||||
gst_pad_push_event (GST_PAD (parsepad),
|
gst_pad_push_event (GST_PAD (parsepad),
|
||||||
gst_event_new_stream_collection (gst_object_ref
|
gst_event_new_stream_collection (fallback_collection));
|
||||||
(fallback_collection)));
|
|
||||||
}
|
}
|
||||||
gst_object_unref (parsepad);
|
gst_object_unref (parsepad);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue