From 97672a1465898f17f72ebe2ed3bf57d4f2e9591b Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Sat, 22 Feb 2014 10:46:32 +0100 Subject: [PATCH] v4l2-ctl: is_mplane was never set. Since is_mplane was always false using the streaming options with multiplanar formats always failed. Fixed. Signed-off-by: Hans Verkuil --- utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp index 0dbe855..4918fa9 100644 --- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp +++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp @@ -236,6 +236,12 @@ public: { type = is_output ? vidout_buftype : vidcap_buftype; memory = is_mmap ? V4L2_MEMORY_MMAP : V4L2_MEMORY_USERPTR; + if (is_output) + is_mplane = capabilities & (V4L2_CAP_VIDEO_M2M_MPLANE | + V4L2_CAP_VIDEO_OUTPUT_MPLANE); + else + is_mplane = capabilities & (V4L2_CAP_VIDEO_M2M_MPLANE | + V4L2_CAP_VIDEO_CAPTURE_MPLANE); } public: -- 2.7.4