mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
aggregator: Don't leak peer pad of inactive pads when (not) forwarding QoS events to them
This commit is contained in:
parent
ac83e18323
commit
a569347789
1 changed files with 3 additions and 1 deletions
|
@ -1896,7 +1896,6 @@ gst_aggregator_event_forward_func (GstPad * pad, gpointer user_data)
|
||||||
} else {
|
} else {
|
||||||
ret = gst_pad_send_event (peer, gst_event_ref (evdata->event));
|
ret = gst_pad_send_event (peer, gst_event_ref (evdata->event));
|
||||||
GST_DEBUG_OBJECT (pad, "return of event push is %d", ret);
|
GST_DEBUG_OBJECT (pad, "return of event push is %d", ret);
|
||||||
gst_object_unref (peer);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1936,6 +1935,9 @@ gst_aggregator_event_forward_func (GstPad * pad, gpointer user_data)
|
||||||
|
|
||||||
evdata->result &= ret;
|
evdata->result &= ret;
|
||||||
|
|
||||||
|
if (peer)
|
||||||
|
gst_object_unref (peer);
|
||||||
|
|
||||||
/* Always send to all pads */
|
/* Always send to all pads */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue