summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-02-23 19:53:58 +0100
committerWim Taymans <wim@metal.(none)>2009-02-23 19:53:58 +0100
commit04359c838254f38e999f22684a7ed7146670506e (patch)
tree265ff7b6bd279baeb021da18ac256998f37225b3 /sys
parentd2fc4cb3ba7711170d5f4d1a9f080496b3268b87 (diff)
Conditionally compile code for YVYU
Only compile the code for the YVYU format when the format is actually defined. Spotted by tmatth on IRC.
Diffstat (limited to 'sys')
-rw-r--r--sys/v4l2/gstv4l2src.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c
index 8eb3e661..9f96a211 100644
--- a/sys/v4l2/gstv4l2src.c
+++ b/sys/v4l2/gstv4l2src.c
@@ -980,10 +980,12 @@ gst_v4l2_get_caps_info (GstV4l2Src * v4l2src, GstCaps * caps,
outsize = GST_ROUND_UP_4 (*w) * GST_ROUND_UP_2 (*h);
outsize += (GST_ROUND_UP_4 (*w) * *h) / 2;
break;
+#ifdef V4L2_PIX_FMT_YVYU
case GST_MAKE_FOURCC ('Y', 'V', 'Y', 'U'):
fourcc = V4L2_PIX_FMT_YVYU;
outsize = (GST_ROUND_UP_2 (*w) * 2) * *h;
break;
+#endif
}
} else if (!strcmp (mimetype, "video/x-raw-rgb")) {
gint depth, endianness, r_mask;