rtpsrc/sink: Use g_signal_connect_object()
authorSebastian Dröge <sebastian@centricular.com>
Tue, 7 Jul 2020 11:43:50 +0000 (14:43 +0300)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 7 Jul 2020 12:42:36 +0000 (12:42 +0000)
commitb812d1c7435e0450fd568f22cdb8cc420447386c
tree36caa02c68b4b0a764c91561ae6e03e3521ac86c
parent9c2982d22cb7449cbae26f88f259420e4db86de1
rtpsrc/sink: Use g_signal_connect_object()

rtpbin can still emit signals when it is being disposed, and while
rtpbin is inside rtpsrc/rtpsink it can still live longer.

So we either have disconnect all signals at some point, or let GObject
take care of that automatically.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1412>
gst/rtp/gstrtpsink.c
gst/rtp/gstrtpsrc.c