Init: add --disable-stdout-buffer option

This commit is contained in:
李通洲
2022-12-03 22:21:24 +08:00
parent 19ec59cca5
commit 58aa3e94e4
5 changed files with 17 additions and 4 deletions
+5
View File
@@ -909,6 +909,11 @@ static void parseOption(FFinstance* instance, FFdata* data, const char* key, con
instance->config.multithreading = optionParseBoolean(value);
else if(strcasecmp(key, "--allow-slow-operations") == 0)
instance->config.allowSlowOperations = optionParseBoolean(value);
else if(strcasecmp(key, "--disable-stdout-buffer") == 0)
{
if(optionParseBoolean(value))
setvbuf(stdout, NULL, _IONBF, 0);
}
else if(strcasecmp(key, "--escape-bedrock") == 0)
instance->config.escapeBedrock = optionParseBoolean(value);
else if(strcasecmp(key, "--pipe") == 0)