mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
43524d637c
commit
69f90adbaf
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue