Support ISO-style variable argument macros.

Original commit message from CVS:
Support ISO-style variable argument macros.
This commit is contained in:
Brian Cameron 2003-06-19 17:27:23 +00:00
parent 45205ab7a3
commit f46b1af7c2

View 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)
{