+2008-04-17 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * gst/gstutils.c:
+ * gst/gstutils.h:
+ API: Deprecate gst_atomic_int_set(), g_atomic_int_set() should be used
+ now that we depend on new enough GLib.
+
+ * gst/gstcaps.c: (gst_static_caps_get):
+ * gst/gstclock.c: (gst_clock_entry_new):
+ * gst/gstinfo.c: (_gst_debug_init), (gst_debug_set_colored),
+ (gst_debug_set_default_threshold), (_gst_debug_category_new),
+ (gst_debug_category_set_threshold):
+ * libs/gst/base/gstbasesink.c: (gst_base_sink_init),
+ (gst_base_sink_set_qos_enabled):
+ * libs/gst/net/gstnettimeprovider.c:
+ (gst_net_time_provider_set_property):
+ Use g_atomic_int_set() instead of gst_atomic_int_set().
+
2008-04-16 Stefan Kost <ensonic@users.sf.net>
* gst/gstquery.c:
/* initialize the caps to a refcount of 1 so the caps can be writable for
* the next statement */
- gst_atomic_int_set (&temp.refcount, 1);
+ g_atomic_int_set (&temp.refcount, 1);
/* convert to string */
if (G_UNLIKELY (!gst_caps_from_string_inplace (&temp, string)))
caps->flags = temp.flags;
caps->structs = temp.structs;
/* and bump the refcount so other threads can now read */
- gst_atomic_int_set (&caps->refcount, 1);
+ g_atomic_int_set (&caps->refcount, 1);
GST_CAT_LOG (GST_CAT_CAPS, "created %p", static_caps);
done:
GST_CAT_DEBUG_OBJECT (GST_CAT_CLOCK, clock,
"created entry %p, time %" GST_TIME_FORMAT, entry, GST_TIME_ARGS (time));
- gst_atomic_int_set (&entry->refcount, 1);
+ g_atomic_int_set (&entry->refcount, 1);
entry->clock = clock;
entry->type = type;
entry->time = time;
void
_gst_debug_init (void)
{
- gst_atomic_int_set (&__default_level, GST_LEVEL_DEFAULT);
- gst_atomic_int_set (&__use_color, 1);
+ g_atomic_int_set (&__default_level, GST_LEVEL_DEFAULT);
+ g_atomic_int_set (&__use_color, 1);
/* get time we started for debugging messages */
_priv_gst_info_start_time = gst_util_get_timestamp ();
void
gst_debug_set_colored (gboolean colored)
{
- gst_atomic_int_set (&__use_color, colored ? 1 : 0);
+ g_atomic_int_set (&__use_color, colored ? 1 : 0);
}
/**
void
gst_debug_set_default_threshold (GstDebugLevel level)
{
- gst_atomic_int_set (&__default_level, level);
+ g_atomic_int_set (&__default_level, level);
gst_debug_reset_all_thresholds ();
}
} else {
cat->description = g_strdup ("no description");
}
- gst_atomic_int_set (&cat->threshold, 0);
+ g_atomic_int_set (&cat->threshold, 0);
gst_debug_reset_threshold (cat, NULL);
/* add to category list */
__gst_debug_min = level;
}
- gst_atomic_int_set (&category->threshold, level);
+ g_atomic_int_set (&category->threshold, level);
}
/**
* @value: value to set
*
* Unconditionally sets the atomic integer to @value.
+ *
+ * Deprecated: Use g_atomic_int_set().
+ *
*/
+#ifndef GST_REMOVE_DEPRECATED
void
gst_atomic_int_set (gint * atomic_int, gint value)
{
/* read acts as a memory barrier */
ignore = g_atomic_int_get (atomic_int);
}
+#endif
/**
* gst_pad_add_data_probe:
#endif /* GST_DISABLE_DEPRECATED */
/* atomic functions */
+#ifndef GST_DISABLE_DEPRECATED
void gst_atomic_int_set (gint * atomic_int, gint value);
+#endif
/* probes */
gulong gst_pad_add_data_probe (GstPad * pad,
basesink->sync = DEFAULT_SYNC;
basesink->abidata.ABI.max_lateness = DEFAULT_MAX_LATENESS;
- gst_atomic_int_set (&priv->qos_enabled, DEFAULT_QOS);
+ g_atomic_int_set (&priv->qos_enabled, DEFAULT_QOS);
priv->async_enabled = DEFAULT_ASYNC;
priv->ts_offset = DEFAULT_TS_OFFSET;
{
g_return_if_fail (GST_IS_BASE_SINK (sink));
- gst_atomic_int_set (&sink->priv->qos_enabled, enabled);
+ g_atomic_int_set (&sink->priv->qos_enabled, enabled);
}
/**
(GstObject *) g_value_get_object (value));
break;
case PROP_ACTIVE:
- gst_atomic_int_set (&self->active.active, g_value_get_boolean (value));
+ g_atomic_int_set (&self->active.active, g_value_get_boolean (value));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);