mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
rtp: Require gconstpointer instead of gpointer for gst_rt[c]p_buffer_new_copy_data()
This commit is contained in:
parent
38c835ec1e
commit
d33c407f6b
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue