gst/gstutils.c: Use g_atomic_int_set() here too instead of assignment + g_atomic_int_...
authorSebastian Dröge <slomo@circular-chaos.org>
Thu, 17 Apr 2008 08:34:14 +0000 (08:34 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Thu, 17 Apr 2008 08:34:14 +0000 (08:34 +0000)
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
gst/gstutils.c

index 4aa08fc..bd1881c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
 2008-04-17  Sebastian Dröge  <slomo@circular-chaos.org>
+
+       * 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  <slomo@circular-chaos.org>
        
        * gst/gstutils.c:
        * gst/gstutils.h:
index d49367f..2d243de 100644 (file)
@@ -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