elementfactory: Fix a compiler warning
authorJan Schmidt <thaytan@noraisin.net>
Thu, 11 Jun 2009 13:00:09 +0000 (14:00 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Thu, 11 Jun 2009 13:00:09 +0000 (14:00 +0100)
Use (gpointer) instead of (gpointer *) to fix a strict-aliasing build warning.

gst/gstelementfactory.c

index 123e3e1..a4b1aa1 100644 (file)
@@ -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)