Commit a5693477 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

aggregator: Don't leak peer pad of inactive pads when (not) forwarding QoS events to them

parent ac83e183
......@@ -1896,7 +1896,6 @@ gst_aggregator_event_forward_func (GstPad * pad, gpointer user_data)
} else {
ret = gst_pad_send_event (peer, gst_event_ref (evdata->event));
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;
if (peer)
gst_object_unref (peer);
/* Always send to all pads */
return FALSE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment