This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: v4l2-ctl: fix codec type detection for multiplanar drivers
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Wed Jan 30 12:27:13 2019 +0100

If the m2m driver is multiplanar, then enum_fmt would fail due
to the hardcoded VIDEO_CAPTURE/OUTPUT buffer type. Query the
buffer type instead of hardcoding it.

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=e4b30f3aee9540eefb7ab450424dc31b90816d4c
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp 
b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
index 01097d4e5d12..d6c3f6a9c874 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -352,7 +352,7 @@ static enum codec_type get_codec_type(cv4l_fd &fd)
        if (!fd.has_vid_m2m())
                return NOT_CODEC;
 
-       if (fd.enum_fmt(fmt_desc, true, 0, V4L2_BUF_TYPE_VIDEO_CAPTURE))
+       if (fd.enum_fmt(fmt_desc, true, 0, fd.g_type()))
                return NOT_CODEC;
 
        do {
@@ -362,7 +362,7 @@ static enum codec_type get_codec_type(cv4l_fd &fd)
        } while (!fd.enum_fmt(fmt_desc));
 
 
-       if (fd.enum_fmt(fmt_desc, true, 0, V4L2_BUF_TYPE_VIDEO_OUTPUT))
+       if (fd.enum_fmt(fmt_desc, true, 0, v4l_type_invert(fd.g_type())))
                return NOT_CODEC;
 
        do {

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to