From 02291f79b8426a55039379a7165ac95badfde7c8 Mon Sep 17 00:00:00 2001 From: Kurt Kartaltepe Date: Tue, 8 Sep 2020 20:29:40 -0700 Subject: [PATCH] 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. --- UI/window-basic-main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index c85ef15a9..b9a96bc66 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -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(); }