mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-02-19 08:16:31 +00:00
fixed io method parser
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user