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
g_list_free (dbin->active_selection);
g_list_free (dbin->to_activate);
g_list_free (dbin->pending_select_streams);
+ g_clear_object (&dbin->collection);
free_input (dbin, dbin->main_input);
/* FIXME : GO OVER INPUTS */
* and post a stream-collection onto the bus */
if (parsepad->active_collection == NULL && fallback_collection) {
gst_pad_push_event (GST_PAD (parsepad),
- gst_event_new_stream_collection (gst_object_ref
- (fallback_collection)));
+ gst_event_new_stream_collection (fallback_collection));
}
gst_object_unref (parsepad);
}