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.
This commit is contained in:
Tim-Philipp Müller 2008-04-17 10:09:39 +00:00
parent 5b5be74fc5
commit 7abf3b41af
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2008-04-17 Tim-Philipp Müller <tim at centricular dot net>
* 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 <wim.taymans@collabora.co.uk> 2008-04-17 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/gstvalue.c: (gst_value_deserialize_caps): * gst/gstvalue.c: (gst_value_deserialize_caps):

View file

@ -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 /* initialize the caps to a refcount of 1 so the caps can be writable for
* the next statement */ * the next statement */
g_atomic_int_set (&temp.refcount, 1); temp.refcount = 1;
/* convert to string */ /* convert to string */
if (G_UNLIKELY (!gst_caps_from_string_inplace (&temp, string))) if (G_UNLIKELY (!gst_caps_from_string_inplace (&temp, string)))

View file

@ -161,7 +161,7 @@ gst_clock_entry_new (GstClock * clock, GstClockTime time,
GST_CAT_DEBUG_OBJECT (GST_CAT_CLOCK, clock, GST_CAT_DEBUG_OBJECT (GST_CAT_CLOCK, clock,
"created entry %p, time %" GST_TIME_FORMAT, entry, GST_TIME_ARGS (time)); "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->clock = clock;
entry->type = type; entry->type = type;
entry->time = time; entry->time = time;