diff options
author | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2016-03-17 23:47:48 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-05-24 19:49:38 +0100 |
commit | ba9bf26f4b91087b5c69711d7746784f466aefa7 (patch) | |
tree | 1e53f3d5063aeac392790a98b863a8f80ca893a6 /ext/libvisual | |
parent | d52a74f32ea7b1a58b4d811b0e02b63496d8f6cd (diff) | |
download | gstreamer-plugins-base-ba9bf26f4b91087b5c69711d7746784f466aefa7.tar.gz |
libvisual: Factor out endian-order RGB formats
MSVC seems to ignore preprocessor conditionals inside static
pad templates. Also remove unnecessary quotes inside caps strings.
Diffstat (limited to 'ext/libvisual')
-rw-r--r-- | ext/libvisual/visual.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/libvisual/visual.c b/ext/libvisual/visual.c index 926ac956e..2ed94f0fc 100644 --- a/ext/libvisual/visual.c +++ b/ext/libvisual/visual.c @@ -30,16 +30,16 @@ GST_DEBUG_CATEGORY_EXTERN (libvisual_debug); /* amounf of samples before we can feed libvisual */ #define VISUAL_SAMPLES 512 -static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", - GST_PAD_SRC, - GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE (" { " #if G_BYTE_ORDER == G_BIG_ENDIAN - "\"xRGB\", " "\"RGB\", " +#define RGB_ORDER_CAPS "xRGB, RGB" #else - "\"BGRx\", " "\"BGR\", " +#define RGB_ORDER_CAPS "BGRx, BGR" #endif - "\"RGB16\" } ")) + +static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", + GST_PAD_SRC, + GST_PAD_ALWAYS, + GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE (" { " RGB_ORDER_CAPS ", RGB16 } ")) ); static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", |