summaryrefslogtreecommitdiffstats
path: root/gst/qtdemux
diff options
context:
space:
mode:
Diffstat (limited to 'gst/qtdemux')
-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)
{