Support ISO-style variable argument macros.
authorBrian Cameron <brian.cameron@sun.com>
Thu, 19 Jun 2003 17:27:23 +0000 (17:27 +0000)
committerBrian Cameron <brian.cameron@sun.com>
Thu, 19 Jun 2003 17:27:23 +0000 (17:27 +0000)
Original commit message from CVS:
Support ISO-style variable argument macros.

gst/qtdemux/qtdemux.c

index dd40843603daebb685b502898e1846fe6b1b7b79..05d9244b47d7d4084beb64fd47eb5cbbc56742e4 100644 (file)
@@ -1504,12 +1504,24 @@ done2:
   gst_qtdemux_add_stream(qtdemux,stream);
 }
 
+#ifdef G_HAVE_ISO_VARARGS
+
+#define GST_QT_CAPS_NEW(name, mime, ...) \
+  GST_CAPS_NEW (name, mime, \
+                "width",  GST_PROPS_INT (width), \
+                "height", GST_PROPS_INT (height), \
+                __VA_ARGS__)
+
+#elif defined(G_HAVE_GNUC_VARARGS)
+
 #define GST_QT_CAPS_NEW(name, mime, props...) \
   GST_CAPS_NEW (name, mime, \
                 "width",  GST_PROPS_INT (width), \
                 "height", GST_PROPS_INT (height), \
                 props)
 
+#endif
+
 static GstCaps *qtdemux_video_caps(GstQTDemux *qtdemux, guint32 fourcc,
                                    gint width, gint height)
 {