From: Sebastian Dröge Date: Thu, 17 Apr 2008 08:34:14 +0000 (+0000) Subject: gst/gstutils.c: Use g_atomic_int_set() here too instead of assignment + g_atomic_int_... X-Git-Tag: RELEASE-0_10_20~126 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1479f03d7faf8d2bb4aa635c6dec50542005f5cc;p=platform%2Fupstream%2Fgstreamer.git gst/gstutils.c: Use g_atomic_int_set() here too instead of assignment + g_atomic_int_get(). Original commit message from CVS: * gst/gstutils.c: (gst_atomic_int_set): Use g_atomic_int_set() here too instead of assignment + g_atomic_int_get(). --- diff --git a/ChangeLog b/ChangeLog index 4aa08fc..bd1881c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ 2008-04-17 Sebastian Dröge + + * gst/gstutils.c: (gst_atomic_int_set): + Use g_atomic_int_set() here too instead of assignment + + g_atomic_int_get(). + +2008-04-17 Sebastian Dröge * gst/gstutils.c: * gst/gstutils.h: diff --git a/gst/gstutils.c b/gst/gstutils.c index d49367f..2d243de 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -2836,11 +2836,7 @@ gst_pad_query_peer_convert (GstPad * pad, GstFormat src_format, gint64 src_val, void gst_atomic_int_set (gint * atomic_int, gint value) { - int ignore; - - *atomic_int = value; - /* read acts as a memory barrier */ - ignore = g_atomic_int_get (atomic_int); + g_atomic_int_set (atomic_int, value); } #endif