From b52ba4751a9928976980c0f8afe540f8fb379801 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 16 May 2005 21:05:21 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ gst/gstminiobject.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a76cc801b2..f5247474c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-16 David Schleef + + * gst/gstminiobject.c: Use g_atomic_int_get() instead of + accessing refcount directly. + 2005-05-15 David Schleef * check/Makefile.am: remove GstData checks diff --git a/gst/gstminiobject.c b/gst/gstminiobject.c index 39b1d297ac..3bfd238258 100644 --- a/gst/gstminiobject.c +++ b/gst/gstminiobject.c @@ -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); }