From 4165cdf4af851cef41b387c4c0e474e16dc02d32 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Thu, 11 Jun 2009 14:00:09 +0100 Subject: [PATCH] elementfactory: Fix a compiler warning Use (gpointer) instead of (gpointer *) to fix a strict-aliasing build warning. --- gst/gstelementfactory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c index 123e3e1b31..a4b1aa1b4b 100644 --- a/gst/gstelementfactory.c +++ b/gst/gstelementfactory.c @@ -415,7 +415,7 @@ gst_element_factory_create (GstElementFactory * factory, const gchar * name) */ oclass = GST_ELEMENT_GET_CLASS (element); if (!g_atomic_pointer_compare_and_exchange ( - (gpointer *) & oclass->elementfactory, NULL, factory)) + (gpointer) & oclass->elementfactory, NULL, factory)) gst_object_unref (factory); if (name)