summaryrefslogtreecommitdiffstats
path: root/gst/monoscope
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2004-04-27 16:26:53 +0000
committerBenjamin Otte <otte@gnome.org>2004-04-27 16:26:53 +0000
commite1ba883a54bf2ecda652cddf40ee60167cfd3e83 (patch)
tree3272a12332ec72a49947600e6616e88c09589b0e /gst/monoscope
parentf7b65944ee085591c00c1b31aab7b9b3a64d2714 (diff)
make stupid compilers happy
Original commit message from CVS: make stupid compilers happy
Diffstat (limited to 'gst/monoscope')
-rw-r--r--gst/monoscope/gstmonoscope.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/gst/monoscope/gstmonoscope.c b/gst/monoscope/gstmonoscope.c
index d7fe9911..c9c1659e 100644
--- a/gst/monoscope/gstmonoscope.c
+++ b/gst/monoscope/gstmonoscope.c
@@ -85,24 +85,35 @@ enum
/* FILL ME */
};
+#if G_BYTE_ORDER == G_BIG_ENDIAN
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw-rgb, "
"bpp = (int) 32, "
- "depth = (int) 24, " "endianness = (int) BIG_ENDIAN, "
-#if G_BYTE_ORDER == G_BIG_ENDIAN
+ "depth = (int) 24, "
+ "endianness = (int) BIG_ENDIAN, "
"red_mask = (int) " GST_VIDEO_BYTE2_MASK_32 ", "
"green_mask = (int) " GST_VIDEO_BYTE3_MASK_32 ", "
"blue_mask = (int) " GST_VIDEO_BYTE4_MASK_32 ", "
+ "width = (int)256, "
+ "height = (int)128, " "framerate = " GST_VIDEO_FPS_RANGE)
+ );
#else
+static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
+ GST_PAD_SRC,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("video/x-raw-rgb, "
+ "bpp = (int) 32, "
+ "depth = (int) 24, "
+ "endianness = (int) BIG_ENDIAN, "
"red_mask = (int) " GST_VIDEO_BYTE3_MASK_32 ", "
"green_mask = (int) " GST_VIDEO_BYTE2_MASK_32 ", "
"blue_mask = (int) " GST_VIDEO_BYTE1_MASK_32 ", "
-#endif
"width = (int)256, "
"height = (int)128, " "framerate = " GST_VIDEO_FPS_RANGE)
);
+#endif
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,