diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2009-05-22 01:16:11 +0200 |
---|---|---|
committer | Wim Taymans <wim@metal.(none)> | 2009-05-22 01:16:11 +0200 |
commit | 451ca5dbc059b369de56cf1a8906f5bd5dc89943 (patch) | |
tree | 2b6f46b899064fae078f2d279e93f0ebbc241219 /gst | |
parent | b3aeee2bf281225495b09216ec3d796e6330c9e1 (diff) | |
download | gst-plugins-bad-451ca5dbc059b369de56cf1a8906f5bd5dc89943.tar.gz gst-plugins-bad-451ca5dbc059b369de56cf1a8906f5bd5dc89943.tar.bz2 gst-plugins-bad-451ca5dbc059b369de56cf1a8906f5bd5dc89943.zip |
rtpbin: Keep jb signals handler
Keep the signal handlers so they can be disconnected at release time
See #561752
Diffstat (limited to 'gst')
-rw-r--r-- | gst/rtpmanager/gstrtpbin.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index 9ab50888..977fd787 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -297,6 +297,9 @@ struct _GstRtpBinStream /* the jitterbuffer of the SSRC */ GstElement *buffer; + gulong buffer_handlesync_sig; + gulong buffer_ptreq_sig; + gulong buffer_ntpstop_sig; /* the PT demuxer of the SSRC */ GstElement *demux; @@ -1096,9 +1099,10 @@ create_stream (GstRtpBinSession * session, guint32 ssrc) session->streams = g_slist_prepend (session->streams, stream); /* provide clock_rate to the jitterbuffer when needed */ - g_signal_connect (buffer, "request-pt-map", + stream->buffer_ptreq_sig = g_signal_connect (buffer, "request-pt-map", (GCallback) pt_map_requested, session); - g_signal_connect (buffer, "on-npt-stop", (GCallback) on_npt_stop, stream); + stream->buffer_ntpstop_sig = g_signal_connect (buffer, "on-npt-stop", + (GCallback) on_npt_stop, stream); /* configure latency and packet lost */ g_object_set (buffer, "latency", session->bin->latency, NULL); @@ -1950,7 +1954,7 @@ new_ssrc_pad_found (GstElement * element, guint ssrc, GstPad * pad, /* connect to the RTCP sync signal from the jitterbuffer */ GST_DEBUG_OBJECT (rtpbin, "connecting sync signal"); - g_signal_connect (stream->buffer, + stream->buffer_handlesync_sig = g_signal_connect (stream->buffer, "handle-sync", (GCallback) gst_rtp_bin_handle_sync, stream); /* connect to the new-pad signal of the payload demuxer, this will expose the |