From: "Németh Márton" <nm127@freemail.hu>
To: V4L Mailing List <linux-media@vger.kernel.org>,
Franck Bourdonnec <fbourdonnec@chez.com>,
Jean-Francois Moine <moinejf@free.fr>
Subject: [PATCH] pixfmt-test: fix VIDIOC_G_STD call for webcams
Date: Tue, 03 Nov 2009 05:14:18 +0100 [thread overview]
Message-ID: <4AEFAE1A.2010600@freemail.hu> (raw)
From: Márton Németh <nm127@freemail.hu>
Webcams may return -1 and errno=EINVAL when there is no standard which
they support. Handle this case in pixfmt-test.
Signed-off-by: Márton Németh <nm127@freemail.hu>
---
diff -r 43878f8dbfb0 v4l2-apps/test/pixfmt-test.c
--- a/v4l2-apps/test/pixfmt-test.c Sun Nov 01 07:17:46 2009 -0200
+++ b/v4l2-apps/test/pixfmt-test.c Tue Nov 03 05:10:52 2009 +0100
@@ -1741,8 +1741,10 @@
/* Errors ignored. */
}
+ /* Webcams may not support any standard at all, see
+ http://v4l2spec.bytesex.org/spec/x448.htm for details */
if (-1 == xioctl (dev_fd, VIDIOC_G_STD, &std_id))
- errno_exit ("VIDIOC_G_STD");
+ std_id = 0;
}
static void
reply other threads:[~2009-11-03 4:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AEFAE1A.2010600@freemail.hu \
--to=nm127@freemail.hu \
--cc=fbourdonnec@chez.com \
--cc=linux-media@vger.kernel.org \
--cc=moinejf@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.