mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 12:40:19 +00:00
optind needs to be set to 0 than 1
optind needs to be set to 0 than 1 to reinit its internal state (see NOTES in man getopt(3)) for getopt_long() in hd-rum-transcode. If not so, the leading '+' in optstring (== disallowing permutation) won't be effective.
This commit is contained in:
@@ -371,6 +371,7 @@ static bool parse_opts_set_logging(int argc, char *argv[])
|
||||
}
|
||||
optind = 1;
|
||||
}
|
||||
optind = 0;
|
||||
opterr = saved_opterr;
|
||||
if (logging_lvl == 0) {
|
||||
logging_lvl = getenv("ULTRAGRID_VERBOSE") != nullptr && strlen(getenv("ULTRAGRID_VERBOSE")) > 0 ? LOG_LEVEL_VERBOSE : log_level;
|
||||
|
||||
Reference in New Issue
Block a user