summaryrefslogtreecommitdiff
path: root/ext/kate/gstkatetiger.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-12-25 16:44:03 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-12-25 16:44:03 +0000
commit5dac64b20adf8d41b060d6aa0b32ea7709efd3a2 (patch)
tree6fcef27edbae560daf50bf4f87017c9f0a1ef186 /ext/kate/gstkatetiger.c
parente35a3ddbf9382534729e8526d827bfca391500ba (diff)
downloadgstreamer-plugins-bad-5dac64b20adf8d41b060d6aa0b32ea7709efd3a2.tar.gz
tiger: move #if #else bits outside of macro
Some compilers/preprocessors don't like if/else/endif preprocessor directives in the middle of macros.
Diffstat (limited to 'ext/kate/gstkatetiger.c')
-rw-r--r--ext/kate/gstkatetiger.c30
1 files changed, 13 insertions, 17 deletions
diff --git a/ext/kate/gstkatetiger.c b/ext/kate/gstkatetiger.c
index 286929796..c6f1988c8 100644
--- a/ext/kate/gstkatetiger.c
+++ b/ext/kate/gstkatetiger.c
@@ -131,30 +131,26 @@ static GstStaticPadTemplate kate_sink_factory =
GST_STATIC_CAPS ("subtitle/x-kate; application/x-kate")
);
-static GstStaticPadTemplate video_sink_factory =
- GST_STATIC_PAD_TEMPLATE ("video_sink",
- GST_PAD_SINK,
- GST_PAD_ALWAYS,
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
- GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB ", endianness = (int) 1234" ";"
- GST_VIDEO_CAPS_BGRx ", endianness = (int)4321")
+#define TIGER_VIDEO_CAPS \
+ GST_VIDEO_CAPS_xRGB ", endianness = (int)1234; " \
+ GST_VIDEO_CAPS_BGRx ", endianness = (int)4321"
#else
- GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB ", endianness = (int) 4321" ";"
- GST_VIDEO_CAPS_BGRx ", endianness = (int)1234")
+#define TIGER_VIDEO_CAPS \
+ GST_VIDEO_CAPS_BGRx ", endianness = (int)4321; " \
+ GST_VIDEO_CAPS_xRGB ", endianness = (int)1234"
#endif
- );
+
+static GstStaticPadTemplate video_sink_factory =
+GST_STATIC_PAD_TEMPLATE ("video_sink",
+ GST_PAD_SINK,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS (TIGER_VIDEO_CAPS));
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
-#if G_BYTE_ORDER == G_LITTLE_ENDIAN
- GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB ", endianness = (int) 1234" ";"
- GST_VIDEO_CAPS_BGRx ", endianness = (int)4321")
-#else
- GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB ", endianness = (int) 4321" ";"
- GST_VIDEO_CAPS_BGRx ", endianness = (int)1234")
-#endif
- );
+ GST_STATIC_CAPS (TIGER_VIDEO_CAPS));
GST_BOILERPLATE (GstKateTiger, gst_kate_tiger, GstElement, GST_TYPE_ELEMENT);