mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
parsebin: Fix leak
Release the reference on the collection which was given to us when extracting it from the event/message. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3319>
This commit is contained in:
parent
b2f2a9125c
commit
93d8b3f660
1 changed files with 2 additions and 0 deletions
|
@ -1219,6 +1219,7 @@ copy_sticky_events (GstPad * pad, GstEvent ** eventptr, gpointer user_data)
|
|||
GstStreamCollection *collection = NULL;
|
||||
gst_event_parse_stream_collection (event, &collection);
|
||||
gst_parse_pad_update_stream_collection (ppad, collection);
|
||||
gst_object_unref (collection);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
@ -4124,6 +4125,7 @@ gst_parse_pad_event (GstPad * pad, GstPadProbeInfo * info, gpointer user_data)
|
|||
gst_element_post_message (GST_ELEMENT (parsepad->parsebin),
|
||||
gst_message_new_stream_collection (GST_OBJECT (parsepad->parsebin),
|
||||
collection));
|
||||
gst_object_unref (collection);
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_EOS:{
|
||||
|
|
Loading…
Reference in a new issue