diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-03-02 00:55:15 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-06-21 11:32:29 +0100 |
commit | 36332faf146d63a2047fb6777e5b4eae7d16757c (patch) | |
tree | efef90183d43d873224220651b05d0ede0809fad /gst/audiovisualizers/gstwavescope.c | |
parent | 74dcb59025615960dd114d52ca1b0fa3d08b6237 (diff) | |
download | gstreamer-plugins-bad-36332faf146d63a2047fb6777e5b4eae7d16757c.tar.gz |
build: Factor out endian-order RGB formats
MSVC seems to ignore preprocessor conditionals inside static pad templates
Diffstat (limited to 'gst/audiovisualizers/gstwavescope.c')
-rw-r--r-- | gst/audiovisualizers/gstwavescope.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gst/audiovisualizers/gstwavescope.c b/gst/audiovisualizers/gstwavescope.c index c3b92465a..e4eb8c2fb 100644 --- a/gst/audiovisualizers/gstwavescope.c +++ b/gst/audiovisualizers/gstwavescope.c @@ -39,15 +39,17 @@ #include <stdlib.h> #include "gstwavescope.h" +#if G_BYTE_ORDER == G_BIG_ENDIAN +#define RGB_ORDER "xRGB" +#else +#define RGB_ORDER "BGRx" +#endif + static GstStaticPadTemplate gst_wave_scope_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, -#if G_BYTE_ORDER == G_BIG_ENDIAN - GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("xRGB")) -#else - GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("BGRx")) -#endif + GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE (RGB_ORDER)) ); static GstStaticPadTemplate gst_wave_scope_sink_template = |