From 7abf3b41af51d83f5531b671d35aa6f4a46a7b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 17 Apr 2008 10:09:39 +0000 Subject: [PATCH] gst/: Don't use g_atomic_set_int where it's not needed. Original commit message from CVS: * gst/gstcaps.c: (gst_static_caps_get): * gst/gstclock.c: (gst_clock_entry_new): Don't use g_atomic_set_int where it's not needed. --- ChangeLog | 6 ++++++ gst/gstcaps.c | 2 +- gst/gstclock.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d4f52f8d5b..4d9ae0a88f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-04-17 Tim-Philipp Müller + + * gst/gstcaps.c: (gst_static_caps_get): + * gst/gstclock.c: (gst_clock_entry_new): + Don't use g_atomic_set_int where it's not needed. + 2008-04-17 Wim Taymans * gst/gstvalue.c: (gst_value_deserialize_caps): diff --git a/gst/gstcaps.c b/gst/gstcaps.c index 02af81464b..19ba104c61 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -453,7 +453,7 @@ gst_static_caps_get (GstStaticCaps * static_caps) /* initialize the caps to a refcount of 1 so the caps can be writable for * the next statement */ - g_atomic_int_set (&temp.refcount, 1); + temp.refcount = 1; /* convert to string */ if (G_UNLIKELY (!gst_caps_from_string_inplace (&temp, string))) diff --git a/gst/gstclock.c b/gst/gstclock.c index a6037e656e..e7a807479e 100644 --- a/gst/gstclock.c +++ b/gst/gstclock.c @@ -161,7 +161,7 @@ gst_clock_entry_new (GstClock * clock, GstClockTime time, GST_CAT_DEBUG_OBJECT (GST_CAT_CLOCK, clock, "created entry %p, time %" GST_TIME_FORMAT, entry, GST_TIME_ARGS (time)); - g_atomic_int_set (&entry->refcount, 1); + entry->refcount = 1; entry->clock = clock; entry->type = type; entry->time = time;