projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2fc4cb
)
Conditionally compile code for YVYU
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 23 Feb 2009 18:53:58 +0000
(19:53 +0100)
committer
Wim Taymans
<wim@metal.(none)>
Mon, 23 Feb 2009 18:53:58 +0000
(19:53 +0100)
Only compile the code for the YVYU format when the format is actually defined.
Spotted by tmatth on IRC.
sys/v4l2/gstv4l2src.c
patch
|
blob
|
history
diff --git
a/sys/v4l2/gstv4l2src.c
b/sys/v4l2/gstv4l2src.c
index
8eb3e66
..
9f96a21
100644
(file)
--- 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;