mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
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:
parent
e134f7f75b
commit
b52ba4751a
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue