mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
Support ISO-style variable argument macros.
Original commit message from CVS: Support ISO-style variable argument macros.
This commit is contained in:
parent
45205ab7a3
commit
f46b1af7c2
1 changed files with 12 additions and 0 deletions
|
@ -1504,12 +1504,24 @@ done2:
|
||||||
gst_qtdemux_add_stream(qtdemux,stream);
|
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...) \
|
#define GST_QT_CAPS_NEW(name, mime, props...) \
|
||||||
GST_CAPS_NEW (name, mime, \
|
GST_CAPS_NEW (name, mime, \
|
||||||
"width", GST_PROPS_INT (width), \
|
"width", GST_PROPS_INT (width), \
|
||||||
"height", GST_PROPS_INT (height), \
|
"height", GST_PROPS_INT (height), \
|
||||||
props)
|
props)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
static GstCaps *qtdemux_video_caps(GstQTDemux *qtdemux, guint32 fourcc,
|
static GstCaps *qtdemux_video_caps(GstQTDemux *qtdemux, guint32 fourcc,
|
||||||
gint width, gint height)
|
gint width, gint height)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue