mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
API change: rename (currently unused function) gst_(data|buffer)_needs_copy_on_write to gst_(data|buffer)_is_readonly...
Original commit message from CVS: API change: rename (currently unused function) gst_(data|buffer)_needs_copy_on_write to gst_(data|buffer)_is_readonly - we don't want to confuse even core developers
This commit is contained in:
parent
e0cb191ed4
commit
c016763611
3 changed files with 4 additions and 4 deletions
|
@ -141,7 +141,7 @@ G_STMT_START { \
|
|||
#define gst_buffer_unref(buf) gst_data_unref (GST_DATA (buf))
|
||||
/* copy buffer */
|
||||
#define gst_buffer_copy(buf) GST_BUFFER (gst_data_copy (GST_DATA (buf)))
|
||||
#define gst_buffer_needs_copy_on_write(buf) GST_BUFFER (gst_data_needs_copy_on_write (GST_DATA (buf)))
|
||||
#define gst_buffer_is_readonly(buf) GST_BUFFER (gst_data_is_readonly (GST_DATA (buf)))
|
||||
#define gst_buffer_copy_on_write(buf) GST_BUFFER (gst_data_copy_on_write (GST_DATA (buf)))
|
||||
#define gst_buffer_free(buf) gst_data_free (GST_DATA (buf))
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ gst_data_copy (const GstData *data)
|
|||
}
|
||||
|
||||
/**
|
||||
* gst_data_needs_copy_on_write:
|
||||
* gst_data_is_readonly:
|
||||
* @data: a #GstData to copy
|
||||
*
|
||||
* Query if the gstdata needs to be copied before it can safely be modified.
|
||||
|
@ -111,7 +111,7 @@ gst_data_copy (const GstData *data)
|
|||
* be copied before it can be modified safely.
|
||||
*/
|
||||
gboolean
|
||||
gst_data_needs_copy_on_write (GstData *data)
|
||||
gst_data_is_readonly (GstData *data)
|
||||
{
|
||||
gint refcount;
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ void gst_data_copy_into (const GstData *data, GstData *target);
|
|||
|
||||
/* basic operations on data */
|
||||
GstData* gst_data_copy (const GstData *data);
|
||||
gboolean gst_data_needs_copy_on_write (GstData *data);
|
||||
gboolean gst_data_is_readonly (GstData *data);
|
||||
GstData* gst_data_copy_on_write (GstData *data);
|
||||
void gst_data_free (GstData *data);
|
||||
|
||||
|
|
Loading…
Reference in a new issue