Reason being we don't want downstream to own a ref to our
internal caps.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/681>
gst_rtp_funnel_send_sticky (GstRtpFunnel * funnel, GstPad * pad)
{
GstEvent *stream_start;
+ GstCaps *caps;
GstEvent *caps_ev;
if (!funnel->send_sticky_events)
goto done;
}
- caps_ev = gst_event_new_caps (funnel->srccaps);
+ caps = gst_caps_copy (funnel->srccaps);
+ caps_ev = gst_event_new_caps (caps);
+ gst_caps_unref (caps);
if (caps_ev && !gst_pad_push_event (funnel->srcpad, caps_ev)) {
GST_ERROR_OBJECT (funnel, "Could not push caps");
goto done;