elementfactory: Fix 64bit constant
authorEdward Hervey <bilboed@bilboed.com>
Fri, 22 Oct 2010 09:52:47 +0000 (11:52 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 22 Oct 2010 09:52:47 +0000 (11:52 +0200)
Basically we're not meant to put anything more complex than simple numbers,
due to the definition of G_GUINT64_CONSTANT:
G_GUINT64_CONSTANT(val) (val##UL)

Which previously resulted in .... 1 << 49UL

gst/gstelementfactory.h

index 9f74405..ff9051b 100644 (file)
@@ -229,7 +229,7 @@ typedef guint64 GstElementFactoryListType;
  *
  * Since: 0.10.31
  */
-#define  GST_ELEMENT_FACTORY_TYPE_ANY G_GUINT64_CONSTANT ((1 << 49) - 1)
+#define  GST_ELEMENT_FACTORY_TYPE_ANY ((G_GUINT64_CONSTANT (1) << 49) - 1)
 
 /**
  * GST_ELEMENT_FACTORY_TYPE_MEDIA_ANY: