diff mbox

pixfmt-test: fix VIDIOC_G_STD call for webcams

Message ID 4AEFAE1A.2010600@freemail.hu (mailing list archive)
State Accepted
Headers show

Commit Message

Németh Márton Nov. 3, 2009, 4:14 a.m. UTC
None
diff mbox

Patch

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