You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
618 B

  1. --- a/utils/v4l2-ctl/v4l2-ctl-common.cpp
  2. +++ b/utils/v4l2-ctl/v4l2-ctl-common.cpp
  3. @@ -785,15 +785,17 @@ static bool parse_subset(char *optarg)
  4. static bool parse_next_subopt(char **subs, char **value)
  5. {
  6. - static char *const subopts[] = {
  7. - NULL
  8. - };
  9. - int opt = getsubopt(subs, subopts, value);
  10. + char *p = *subs;
  11. + *value = *subs;
  12. - if (opt < 0 || *value)
  13. - return false;
  14. - fprintf(stderr, "Missing suboption value\n");
  15. - return true;
  16. + while (*p && *p != ',')
  17. + p++;
  18. +
  19. + if (*p)
  20. + *p++ = '\0';
  21. +
  22. + *subs = p;
  23. + return false;
  24. }
  25. void common_cmd(const std::string &media_bus_info, int ch, char *optarg)