summaryrefslogtreecommitdiffstats
path: root/gst
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
commitf46b1af7c2eaacd45325bd4f35b85024b759d211 (patch)
treece75c181116ecff3849a592e38eba0b7a8e334b4 /gst
parent45205ab7a3fe9e70dd769504592122277d2d5a3f (diff)
Support ISO-style variable argument macros.
Original commit message from CVS: Support ISO-style variable argument macros.
Diffstat (limited to 'gst')
-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)
{