mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
change *_is_readonly to *_is_writeable. Hope the name stays now...
Original commit message from CVS: change *_is_readonly to *_is_writeable. Hope the name stays now...
This commit is contained in:
parent
ede90a27db
commit
42efbe5648
3 changed files with 6 additions and 7 deletions
|
@ -141,7 +141,7 @@ G_STMT_START { \
|
||||||
#define gst_buffer_unref(buf) gst_data_unref (GST_DATA (buf))
|
#define gst_buffer_unref(buf) gst_data_unref (GST_DATA (buf))
|
||||||
/* copy buffer */
|
/* copy buffer */
|
||||||
#define gst_buffer_copy(buf) GST_BUFFER (gst_data_copy (GST_DATA (buf)))
|
#define gst_buffer_copy(buf) GST_BUFFER (gst_data_copy (GST_DATA (buf)))
|
||||||
#define gst_buffer_is_readonly(buf) GST_BUFFER (gst_data_is_readonly (GST_DATA (buf)))
|
#define gst_buffer_is_writeable(buf) GST_BUFFER (gst_data_is_writeable (GST_DATA (buf)))
|
||||||
#define gst_buffer_copy_on_write(buf) GST_BUFFER (gst_data_copy_on_write (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))
|
#define gst_buffer_free(buf) gst_data_free (GST_DATA (buf))
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ void gst_buffer_pool_set_active (GstBufferPool *pool, gboolean active);
|
||||||
|
|
||||||
/* bufferpool operations */
|
/* bufferpool operations */
|
||||||
#define gst_buffer_pool_copy(pool) GST_BUFFER_POOL (gst_data_copy (GST_DATA (pool)))
|
#define gst_buffer_pool_copy(pool) GST_BUFFER_POOL (gst_data_copy (GST_DATA (pool)))
|
||||||
#define gst_buffer_pool_is_readonly(pool) GST_BUFFER_POOL (gst_data_is_readonly (GST_DATA (pool)))
|
#define gst_buffer_pool_is_writeable(pool) GST_BUFFER_POOL (gst_data_is_writeable (GST_DATA (pool)))
|
||||||
#define gst_buffer_pool_copy_on_write(pool) GST_BUFFER_POOL (gst_data_copy_on_write (GST_DATA (pool)))
|
#define gst_buffer_pool_copy_on_write(pool) GST_BUFFER_POOL (gst_data_copy_on_write (GST_DATA (pool)))
|
||||||
#define gst_buffer_pool_free(pool) gst_data_free (GST_DATA (pool))
|
#define gst_buffer_pool_free(pool) gst_data_free (GST_DATA (pool))
|
||||||
|
|
||||||
|
|
|
@ -102,16 +102,16 @@ gst_data_copy (const GstData *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_data_is_readonly:
|
* gst_data_is_writeable:
|
||||||
* @data: a #GstData to copy
|
* @data: a #GstData to copy
|
||||||
*
|
*
|
||||||
* Query if the gstdata needs to be copied before it can safely be modified.
|
* Query if the gstdata needs to be copied before it can safely be modified.
|
||||||
*
|
*
|
||||||
* Returns: TRUE if the given #GstData is potentially shared and needs to
|
* Returns: FALSE if the given #GstData is potentially shared and needs to
|
||||||
* be copied before it can be modified safely.
|
* be copied before it can be modified safely.
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gst_data_is_readonly (GstData *data)
|
gst_data_is_writeable (GstData *data)
|
||||||
{
|
{
|
||||||
gint refcount;
|
gint refcount;
|
||||||
|
|
||||||
|
@ -246,4 +246,3 @@ gst_data_unref (GstData *data)
|
||||||
data->free (data);
|
data->free (data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,7 @@ void gst_data_copy_into (const GstData *data, GstData *target);
|
||||||
|
|
||||||
/* basic operations on data */
|
/* basic operations on data */
|
||||||
GstData* gst_data_copy (const GstData *data);
|
GstData* gst_data_copy (const GstData *data);
|
||||||
gboolean gst_data_is_readonly (GstData *data);
|
gboolean gst_data_is_writeable (GstData *data);
|
||||||
GstData* gst_data_copy_on_write (GstData *data);
|
GstData* gst_data_copy_on_write (GstData *data);
|
||||||
void gst_data_free (GstData *data);
|
void gst_data_free (GstData *data);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue