From 7ecbd7271d75563eb4a170c852b26ef27b78ec29 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Tue, 19 Mar 2019 09:50:04 -0400 Subject: [PATCH] rtpmanager: Register chain functions to debug --- gst/rtpmanager/gstrtpjitterbuffer.c | 1 + gst/rtpmanager/gstrtpptdemux.c | 2 ++ gst/rtpmanager/gstrtpsession.c | 14 ++++++++++++++ gst/rtpmanager/gstrtpssrcdemux.c | 3 +++ 4 files changed, 20 insertions(+) diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 5ec9eee..d07fbed 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -999,6 +999,7 @@ gst_rtp_jitter_buffer_class_init (GstRtpJitterBufferClass * klass) GST_DEBUG_CATEGORY_INIT (rtpjitterbuffer_debug, "rtpjitterbuffer", 0, "RTP Jitter Buffer"); + GST_DEBUG_REGISTER_FUNCPTR (gst_rtp_jitter_buffer_chain_rtcp); } static void diff --git a/gst/rtpmanager/gstrtpptdemux.c b/gst/rtpmanager/gstrtpptdemux.c index 5e77594..483966b 100644 --- a/gst/rtpmanager/gstrtpptdemux.c +++ b/gst/rtpmanager/gstrtpptdemux.c @@ -281,6 +281,8 @@ gst_rtp_pt_demux_class_init (GstRtpPtDemuxClass * klass) GST_DEBUG_CATEGORY_INIT (gst_rtp_pt_demux_debug, "rtpptdemux", 0, "RTP codec demuxer"); + + GST_DEBUG_REGISTER_FUNCPTR (gst_rtp_pt_demux_chain); } static void diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index 5b829ed..cad1f12 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -306,6 +306,14 @@ static void gst_rtp_session_notify_nack (RTPSession * sess, static void gst_rtp_session_reconfigure (RTPSession * sess, gpointer user_data); static void gst_rtp_session_notify_early_rtcp (RTPSession * sess, gpointer user_data); +static GstFlowReturn gst_rtp_session_chain_recv_rtp (GstPad * pad, + GstObject * parent, GstBuffer * buffer); +static GstFlowReturn gst_rtp_session_chain_recv_rtcp (GstPad * pad, + GstObject * parent, GstBuffer * buffer); +static GstFlowReturn gst_rtp_session_chain_send_rtp (GstPad * pad, + GstObject * parent, GstBuffer * buffer); +static GstFlowReturn gst_rtp_session_chain_send_rtp_list (GstPad * pad, + GstObject * parent, GstBufferList * list); static RTPSessionCallbacks callbacks = { gst_rtp_session_process_rtp, @@ -800,6 +808,12 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass) GST_DEBUG_CATEGORY_INIT (gst_rtp_session_debug, "rtpsession", 0, "RTP Session"); + + GST_DEBUG_REGISTER_FUNCPTR (gst_rtp_session_chain_recv_rtp); + GST_DEBUG_REGISTER_FUNCPTR (gst_rtp_session_chain_recv_rtcp); + GST_DEBUG_REGISTER_FUNCPTR (gst_rtp_session_chain_send_rtp); + GST_DEBUG_REGISTER_FUNCPTR (gst_rtp_session_chain_send_rtp_list); + } static void diff --git a/gst/rtpmanager/gstrtpssrcdemux.c b/gst/rtpmanager/gstrtpssrcdemux.c index 3bcd07b..1661e79 100644 --- a/gst/rtpmanager/gstrtpssrcdemux.c +++ b/gst/rtpmanager/gstrtpssrcdemux.c @@ -408,6 +408,9 @@ gst_rtp_ssrc_demux_class_init (GstRtpSsrcDemuxClass * klass) GST_DEBUG_CATEGORY_INIT (gst_rtp_ssrc_demux_debug, "rtpssrcdemux", 0, "RTP SSRC demuxer"); + + GST_DEBUG_REGISTER_FUNCPTR (gst_rtp_ssrc_demux_chain); + GST_DEBUG_REGISTER_FUNCPTR (gst_rtp_ssrc_demux_rtcp_chain); } static void -- 2.7.4