From 33709106e921ecd2997e91b1361d160a0f94fe60 Mon Sep 17 00:00:00 2001 From: Justin Kim Date: Wed, 1 Nov 2017 13:52:50 +0900 Subject: [PATCH] rtcpbuffer: Add XR type RTCP XR provides supplements information of the report blocks from SR and RR. This patch is for downgrading warnings when XR is detected before implementing entire block types of RFC3611. https://bugzilla.gnome.org/show_bug.cgi?id=789743 --- gst-libs/gst/rtp/gstrtcpbuffer.c | 3 +++ gst-libs/gst/rtp/gstrtcpbuffer.h | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/rtp/gstrtcpbuffer.c b/gst-libs/gst/rtp/gstrtcpbuffer.c index 29057e3ff7..93fb8bb739 100644 --- a/gst-libs/gst/rtp/gstrtcpbuffer.c +++ b/gst-libs/gst/rtp/gstrtcpbuffer.c @@ -546,6 +546,9 @@ gst_rtcp_buffer_add_packet (GstRTCPBuffer * rtcp, GstRTCPType type, case GST_RTCP_TYPE_PSFB: len = 12; break; + case GST_RTCP_TYPE_XR: + len = 4; + break; default: goto unknown_type; } diff --git a/gst-libs/gst/rtp/gstrtcpbuffer.h b/gst-libs/gst/rtp/gstrtcpbuffer.h index 9e959ddfee..06baa334ee 100644 --- a/gst-libs/gst/rtp/gstrtcpbuffer.h +++ b/gst-libs/gst/rtp/gstrtcpbuffer.h @@ -44,6 +44,7 @@ G_BEGIN_DECLS * @GST_RTCP_TYPE_APP: Application defined * @GST_RTCP_TYPE_RTPFB: Transport layer feedback. * @GST_RTCP_TYPE_PSFB: Payload-specific feedback. + * @GST_RTCP_TYPE_XR: Extended report. * * Different RTCP packet types. */ @@ -56,7 +57,8 @@ typedef enum GST_RTCP_TYPE_BYE = 203, GST_RTCP_TYPE_APP = 204, GST_RTCP_TYPE_RTPFB = 205, - GST_RTCP_TYPE_PSFB = 206 + GST_RTCP_TYPE_PSFB = 206, + GST_RTCP_TYPE_XR = 207 } GstRTCPType; /* FIXME 2.0: backwards compatibility define for enum typo */