mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Fix recording check when using url output
Previously this check would prevent you from using URL output if your file output target was invalid.
This commit is contained in:
parent
5889e2905e
commit
02291f79b8
|
@ -8258,6 +8258,18 @@ void OBSBasic::OutputPathInvalidMessage()
|
|||
|
||||
bool OBSBasic::OutputPathValid()
|
||||
{
|
||||
const char *mode = config_get_string(Config(), "Output", "Mode");
|
||||
if (strcmp(mode, "Advanced") == 0) {
|
||||
const char *advanced_mode =
|
||||
config_get_string(Config(), "AdvOut", "RecType");
|
||||
if (strcmp(advanced_mode, "FFmpeg") == 0) {
|
||||
bool is_local = config_get_bool(Config(), "AdvOut",
|
||||
"FFOutputToFile");
|
||||
if (!is_local)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
const char *path = GetCurrentOutputPath();
|
||||
return path && *path && QDir(path).exists();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue