elementfactory: Fix a compiler warning

Use (gpointer) instead of (gpointer *) to fix a strict-aliasing build warning.
This commit is contained in:
Jan Schmidt 2009-06-11 14:00:09 +01:00
parent 29170a4cfa
commit 4165cdf4af

View file

@ -415,7 +415,7 @@ gst_element_factory_create (GstElementFactory * factory, const gchar * name)
*/ */
oclass = GST_ELEMENT_GET_CLASS (element); oclass = GST_ELEMENT_GET_CLASS (element);
if (!g_atomic_pointer_compare_and_exchange ( if (!g_atomic_pointer_compare_and_exchange (
(gpointer *) & oclass->elementfactory, NULL, factory)) (gpointer) & oclass->elementfactory, NULL, factory))
gst_object_unref (factory); gst_object_unref (factory);
if (name) if (name)