diff options
author | Brian Cameron <brian.cameron@sun.com> | 2003-06-19 17:27:23 +0000 |
---|---|---|
committer | Brian Cameron <brian.cameron@sun.com> | 2003-06-19 17:27:23 +0000 |
commit | fc881ebfedf213ab4c553717d3e5aa6391d2bdea (patch) | |
tree | 6eb352879c4ef3243a8ca0cb7b726dde65c0eb11 /gst/qtdemux | |
parent | efe27361b042cb84ae7f29ffa1eea9dd0c34b2f6 (diff) | |
download | gst-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.
Diffstat (limited to 'gst/qtdemux')
-rw-r--r-- | gst/qtdemux/qtdemux.c | 12 |
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) { |