From: Jan Schmidt Date: Thu, 11 Jun 2009 13:00:09 +0000 (+0100) Subject: elementfactory: Fix a compiler warning X-Git-Tag: RELEASE-0.10.24~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4165cdf4af851cef41b387c4c0e474e16dc02d32;p=platform%2Fupstream%2Fgstreamer.git elementfactory: Fix a compiler warning Use (gpointer) instead of (gpointer *) to fix a strict-aliasing build warning. --- diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c index 123e3e1..a4b1aa1 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)