/* 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",