From 04359c838254f38e999f22684a7ed7146670506e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 23 Feb 2009 19:53:58 +0100 Subject: Conditionally compile code for YVYU Only compile the code for the YVYU format when the format is actually defined. Spotted by tmatth on IRC. --- sys/v4l2/gstv4l2src.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys') 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; -- cgit