rtpbin: fix leak of pad when a fec encoder and aux sender a created

The ghost sink pad retrieved by rtpbin from the aux sender was not freed
when there was a previous element (fec encoder) in the chain.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1222>
This commit is contained in:
Matthew Waters 2021-10-21 20:32:05 +11:00 committed by GStreamer Marge Bot
parent 47a4c74e9b
commit 8c35850f23

View file

@ -4842,6 +4842,7 @@ create_send_rtp (GstRtpBin * rtpbin, GstPadTemplate * templ, const gchar * name)
if (ret != GST_PAD_LINK_OK) {
goto aux_link_failed;
}
gst_object_unref (sinkpad);
}
prev = aux;
} else {