rtcpbuffer: Add XR type
authorJustin Kim <justin.kim@collabora.com>
Wed, 1 Nov 2017 04:52:50 +0000 (13:52 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 1 Nov 2017 08:54:10 +0000 (10:54 +0200)
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
gst-libs/gst/rtp/gstrtcpbuffer.h

index 29057e3..93fb8bb 100644 (file)
@@ -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;
   }
index 9e959dd..06baa33 100644 (file)
@@ -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 */