diff --git a/gst-libs/gst/rtp/gstrtcpbuffer.c b/gst-libs/gst/rtp/gstrtcpbuffer.c index c09079b52e..a6b38c1414 100644 --- a/gst-libs/gst/rtp/gstrtcpbuffer.c +++ b/gst-libs/gst/rtp/gstrtcpbuffer.c @@ -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); } diff --git a/gst-libs/gst/rtp/gstrtcpbuffer.h b/gst-libs/gst/rtp/gstrtcpbuffer.h index 06baa334ee..2403e2f69b 100644 --- a/gst-libs/gst/rtp/gstrtcpbuffer.h +++ b/gst-libs/gst/rtp/gstrtcpbuffer.h @@ -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); diff --git a/gst-libs/gst/rtp/gstrtpbuffer.c b/gst-libs/gst/rtp/gstrtpbuffer.c index d79403cb25..40392f3d57 100644 --- a/gst-libs/gst/rtp/gstrtpbuffer.c +++ b/gst-libs/gst/rtp/gstrtpbuffer.c @@ -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); } diff --git a/gst-libs/gst/rtp/gstrtpbuffer.h b/gst-libs/gst/rtp/gstrtpbuffer.h index 53ff686d8a..e533aeaeb1 100644 --- a/gst-libs/gst/rtp/gstrtpbuffer.h +++ b/gst-libs/gst/rtp/gstrtpbuffer.h @@ -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);