rsvgdec: fix compilation with MSVC

MSVC doesn't like #if #else within statements.

Fixes #609215.
This commit is contained in:
David Hoyt 2010-02-07 11:09:45 +01:00 committed by Tim-Philipp Müller
parent 334714bbc0
commit beeb8fa8ec

View file

@ -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);