mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
collectpads: Unref peer pad
This commit is contained in:
parent
c86e53ab77
commit
595481c759
1 changed files with 3 additions and 1 deletions
|
@ -1862,8 +1862,10 @@ event_forward_func (GstPad * pad, EventData * data)
|
|||
gboolean ret = TRUE;
|
||||
GstPad *peer = gst_pad_get_peer (pad);
|
||||
|
||||
if (peer)
|
||||
if (peer) {
|
||||
ret = gst_pad_send_event (peer, gst_event_ref (data->event));
|
||||
gst_object_unref (peer);
|
||||
}
|
||||
|
||||
data->result &= ret;
|
||||
/* Always send to all pads */
|
||||
|
|
Loading…
Reference in a new issue