sdp: don't leak the ghost pad
authorMichael Olbrich <m.olbrich@pengutronix.de>
Tue, 27 Aug 2019 13:14:31 +0000 (15:14 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 6 Nov 2019 02:11:20 +0000 (02:11 +0000)
commit58479bec37d50662bb4f709b74bf4bffcfe75c10
tree9464bc34da6fc5918e9d20e52968b8442b68345e
parent86b01bb291d8453a7ad440b03df7a65a052ae84a
sdp: don't leak the ghost pad

The peer is already gone when pad_removed_cb() called, so the ghost cannot
be removed. Use g_object_set_data() instead to remember the ghost pad.

Copied from similar code in GstRTPBin.
gst/sdp/gstsdpsrc.c