mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
rsvgdec: fix compilation with MSVC
MSVC doesn't like #if #else within statements. Fixes #609215.
This commit is contained in:
parent
334714bbc0
commit
beeb8fa8ec
1 changed files with 7 additions and 6 deletions
|
@ -32,14 +32,15 @@ static GstStaticPadTemplate sink_factory =
|
||||||
GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
|
GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("image/svg+xml; image/svg"));
|
GST_STATIC_CAPS ("image/svg+xml; image/svg"));
|
||||||
|
|
||||||
|
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||||
|
#define GST_RSVG_VIDEO_CAPS GST_VIDEO_CAPS_BGRA
|
||||||
|
#else
|
||||||
|
#define GST_RSVG_VIDEO_CAPS GST_VIDEO_CAPS_ARGB
|
||||||
|
#endif
|
||||||
|
|
||||||
static GstStaticPadTemplate src_factory =
|
static GstStaticPadTemplate src_factory =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
|
GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
|
||||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
GST_STATIC_CAPS (GST_RSVG_VIDEO_CAPS));
|
||||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRA)
|
|
||||||
#else
|
|
||||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_ARGB)
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
|
|
||||||
GST_BOILERPLATE (GstRsvgDec, gst_rsvg_dec, GstElement, GST_TYPE_ELEMENT);
|
GST_BOILERPLATE (GstRsvgDec, gst_rsvg_dec, GstElement, GST_TYPE_ELEMENT);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue