mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-12 18:43:42 +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) {
|
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)) {
|
if (!strcasecmp(str, _IO_METHODS[index].name)) {
|
||||||
return _IO_METHODS[index].io_method;
|
return _IO_METHODS[index].io_method;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user