gst/gstminiobject.c: Use g_atomic_int_get() instead of accessing refcount directly.

Original commit message from CVS:
* gst/gstminiobject.c: Use g_atomic_int_get() instead of
accessing refcount directly.
This commit is contained in:
David Schleef 2005-05-16 21:05:21 +00:00
parent e134f7f75b
commit b52ba4751a
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-05-16 David Schleef <ds@schleef.org>
* gst/gstminiobject.c: Use g_atomic_int_get() instead of
accessing refcount directly.
2005-05-15 David Schleef <ds@schleef.org>
* check/Makefile.am: remove GstData checks

View file

@ -146,7 +146,7 @@ gst_mini_object_copy (const GstMiniObject * mini_object)
gboolean
gst_mini_object_is_writable (const GstMiniObject * mini_object)
{
return (mini_object->refcount == 1) &&
return (g_atomic_int_get (&mini_object->refcount) == 1) &&
((mini_object->flags & GST_MINI_OBJECT_FLAG_READONLY) == 0);
}