diff --git a/gst-libs/gst/rtp/gstrtpbuffer.c b/gst-libs/gst/rtp/gstrtpbuffer.c index d4c2edfe82..16e740c25d 100644 --- a/gst-libs/gst/rtp/gstrtpbuffer.c +++ b/gst-libs/gst/rtp/gstrtpbuffer.c @@ -1494,7 +1494,7 @@ get_onebyte_header_end_offset (guint8 * pdata, guint wordlen) gboolean gst_rtp_buffer_add_extension_onebyte_header (GstRTPBuffer * rtp, guint8 id, - gpointer data, guint size) + gconstpointer data, guint size) { guint16 bits; guint8 *pdata = 0; @@ -1593,7 +1593,7 @@ get_twobytes_header_end_offset (const guint8 * pdata, guint wordlen) gboolean gst_rtp_buffer_add_extension_twobytes_header (GstRTPBuffer * rtp, - guint8 appbits, guint8 id, gpointer data, guint size) + guint8 appbits, guint8 id, gconstpointer data, guint size) { guint16 bits; guint8 *pdata = 0; diff --git a/gst-libs/gst/rtp/gstrtpbuffer.h b/gst-libs/gst/rtp/gstrtpbuffer.h index f544f83df9..46a6e9cd7d 100644 --- a/gst-libs/gst/rtp/gstrtpbuffer.h +++ b/gst-libs/gst/rtp/gstrtpbuffer.h @@ -142,12 +142,12 @@ gboolean gst_rtp_buffer_get_extension_twobytes_header (GstRTPBuffer *rtp, gboolean gst_rtp_buffer_add_extension_onebyte_header (GstRTPBuffer *rtp, guint8 id, - gpointer data, + gconstpointer data, guint size); gboolean gst_rtp_buffer_add_extension_twobytes_header (GstRTPBuffer *rtp, guint8 appbits, guint8 id, - gpointer data, + gconstpointer data, guint size); /**