rtpbuffer: Add some const qualifiers

gst_rtp_buffer_add_extension_onebyte_header() and
gst_rtp_buffer_add_extension_twobytes_header() can have a const argument for
the actual extension data.
This commit is contained in:
Sebastian Dröge 2016-07-26 17:46:02 +03:00
parent 43524d637c
commit 69f90adbaf
2 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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);
/**