summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2003-06-19 17:27:23 +0000
committerBrian Cameron <brian.cameron@sun.com>2003-06-19 17:27:23 +0000
commitfc881ebfedf213ab4c553717d3e5aa6391d2bdea (patch)
tree6eb352879c4ef3243a8ca0cb7b726dde65c0eb11
parentefe27361b042cb84ae7f29ffa1eea9dd0c34b2f6 (diff)
downloadgst-plugins-bad-fc881ebfedf213ab4c553717d3e5aa6391d2bdea.tar.gz
gst-plugins-bad-fc881ebfedf213ab4c553717d3e5aa6391d2bdea.tar.bz2
gst-plugins-bad-fc881ebfedf213ab4c553717d3e5aa6391d2bdea.zip
Support ISO-style variable argument macros.
Original commit message from CVS: Support ISO-style variable argument macros.
-rw-r--r--gst/qtdemux/qtdemux.c12
1 files changed, 12 insertions, 0 deletions
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)
{