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
#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))
}
/**
- * 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.
* 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;
/* 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);