rtp: Require gconstpointer instead of gpointer for gst_rt[c]p_buffer_new_copy_data()

This commit is contained in:
Sebastian Dröge 2017-11-17 14:07:22 +02:00
parent 38c835ec1e
commit d33c407f6b
4 changed files with 4 additions and 4 deletions

View file

@ -79,7 +79,7 @@ gst_rtcp_buffer_new_take_data (gpointer data, guint len)
* Returns: A newly allocated buffer with a copy of @data and of size @len.
*/
GstBuffer *
gst_rtcp_buffer_new_copy_data (gpointer data, guint len)
gst_rtcp_buffer_new_copy_data (gconstpointer data, guint len)
{
return gst_rtcp_buffer_new_take_data (g_memdup (data, len), len);
}

View file

@ -228,7 +228,7 @@ GST_EXPORT
GstBuffer* gst_rtcp_buffer_new_take_data (gpointer data, guint len);
GST_EXPORT
GstBuffer* gst_rtcp_buffer_new_copy_data (gpointer data, guint len);
GstBuffer* gst_rtcp_buffer_new_copy_data (gconstpointer data, guint len);
GST_EXPORT
gboolean gst_rtcp_buffer_validate_data (guint8 *data, guint len);

View file

@ -179,7 +179,7 @@ gst_rtp_buffer_new_take_data (gpointer data, gsize len)
* Returns: A newly allocated buffer with a copy of @data and of size @len.
*/
GstBuffer *
gst_rtp_buffer_new_copy_data (gpointer data, gsize len)
gst_rtp_buffer_new_copy_data (gconstpointer data, gsize len)
{
return gst_rtp_buffer_new_take_data (g_memdup (data, len), len);
}

View file

@ -72,7 +72,7 @@ GST_EXPORT
GstBuffer* gst_rtp_buffer_new_take_data (gpointer data, gsize len);
GST_EXPORT
GstBuffer* gst_rtp_buffer_new_copy_data (gpointer data, gsize len);
GstBuffer* gst_rtp_buffer_new_copy_data (gconstpointer data, gsize len);
GST_EXPORT
GstBuffer* gst_rtp_buffer_new_allocate (guint payload_len, guint8 pad_len, guint8 csrc_count);