Added gst_buffer[_pool]_needs_copy_on_write()

Original commit message from CVS:
Added gst_buffer[_pool]_needs_copy_on_write()
This commit is contained in:
David Schleef 2002-11-19 02:30:45 +00:00
parent f42d7e6ac8
commit eaba0a07e8

View file

@ -135,6 +135,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_needs_copy_on_write(buf) GST_BUFFER (gst_data_needs_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_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))
@ -167,6 +168,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_needs_copy_on_write(pool) GST_BUFFER_POOL (gst_data_needs_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_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))