From 1479f03d7faf8d2bb4aa635c6dec50542005f5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 17 Apr 2008 08:34:14 +0000 Subject: [PATCH] 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(). --- ChangeLog | 6 ++++++ gst/gstutils.c | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4aa08fc384..bd1881ce2b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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: diff --git a/gst/gstutils.c b/gst/gstutils.c index d49367fe06..2d243de54f 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