From fc881ebfedf213ab4c553717d3e5aa6391d2bdea Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Thu, 19 Jun 2003 17:27:23 +0000 Subject: Support ISO-style variable argument macros. Original commit message from CVS: Support ISO-style variable argument macros. --- gst/qtdemux/qtdemux.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index dd408436..05d9244b 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -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) { -- cgit v1.2.1