From bd5cf7d3dec86810949586f171f58fbdb1883a3b Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Wed, 8 Jul 2020 00:38:49 +0300 Subject: [PATCH] fixed io method parser --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index e54a532..2ca848d 100644 --- a/src/device.c +++ b/src/device.c @@ -151,7 +151,7 @@ v4l2_std_id device_parse_standard(const char *str) { } int device_parse_io_method(const char *str) { - for (unsigned index = 1; index < ARRAY_LEN(_IO_METHODS); ++index) { + for (unsigned index = 0; index < ARRAY_LEN(_IO_METHODS); ++index) { if (!strcasecmp(str, _IO_METHODS[index].name)) { return _IO_METHODS[index].io_method; }