From c726e0ab6d730d6d6096f45be41406c780d47450 Mon Sep 17 00:00:00 2001 From: Havard Graff Date: Thu, 1 Sep 2016 09:57:33 +0200 Subject: [PATCH] rtpbuffer: Add buffer flag RETRANSMISSION Useful for elements to know if a buffer is a retransmitted RTP packet. https://bugzilla.gnome.org/show_bug.cgi?id=769771 --- gst-libs/gst/rtp/gstrtpbuffer.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gst-libs/gst/rtp/gstrtpbuffer.h b/gst-libs/gst/rtp/gstrtpbuffer.h index 46a6e9cd7d..5a9049fb8d 100644 --- a/gst-libs/gst/rtp/gstrtpbuffer.h +++ b/gst-libs/gst/rtp/gstrtpbuffer.h @@ -150,6 +150,25 @@ gboolean gst_rtp_buffer_add_extension_twobytes_header (GstRTPBuffer *rtp, gconstpointer data, guint size); +/** + * GstRTPBufferFlags: + * @GST_RTP_BUFFER_FLAG_RETRANSMISSION: The #GstBuffer was once wrapped + * in a retransmitted packet as specified by RFC 4588. + * @GST_RTP_BUFFER_FLAG_LAST: Offset to define more flags. + * + * Additional RTP buffer flags. These flags can potentially be used on any + * buffers carrying RTP packets. + * + * Note that these are only valid for #GstCaps of type: application/x-rtp (x-rtcp). + * They can conflict with other extended buffer flags. + * + * Since: 1.10 + */ +typedef enum { + GST_RTP_BUFFER_FLAG_RETRANSMISSION = (GST_BUFFER_FLAG_LAST << 0), + GST_RTP_BUFFER_FLAG_LAST = (GST_BUFFER_FLAG_LAST << 8) +} GstRTPBufferFlags; + /** * GstRTPBufferMapFlags: * @GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING: Skip mapping and validation of RTP