Original commit message from CVS:
* gst/gstdata.c: (gst_data_is_writable):
whoops, return values were wrong, so writable data was marked as
non-writable and vice versa. (fixes #143953, spotted by Francis
Labonte)
Shows how rarely we need to copy data ;)
+2004-06-20 Benjamin Otte <otte@gnome.org>
+
+ * gst/gstdata.c: (gst_data_is_writable):
+ whoops, return values were wrong, so writable data was marked as
+ non-writable and vice versa. (fixes #143953, spotted by Francis
+ Labonte)
+ Shows how rarely we need to copy data ;)
+
2004-06-20 Benjamin Otte <otte@gnome.org>
* testsuite/schedulers/.cvsignore:
refcount = gst_atomic_int_read (&data->refcount);
- if (refcount == 1 && !GST_DATA_FLAG_IS_SET (data, GST_DATA_READONLY))
+ if (refcount >= 1)
+ return FALSE;
+ if (GST_DATA_FLAG_IS_SET (data, GST_DATA_READONLY))
return FALSE;
return TRUE;