mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-18 04:04:42 -04:00
UI: Fix path calculation for disk space check
When using custom FFmpeg output mode, the check would instead use the standard recording path which is no longer visible in the settings. This commit also simplifies the checks by moving the duplicated code to a new function.
This commit is contained in:
1 parent
66967b7a55
commit
27b7f45fd7
3 files changed
+31
-13
No files matched your search
@@ -297,13 +297,7 @@ void OBSBasicStats::Update()
|
||||
|
||||
/* ------------------ */
|
||||
|
||||
const char *mode = config_get_string(main->Config(), "Output", "Mode");
|
||||
const char *path = strcmp(mode, "Advanced")
|
||||
? config_get_string(main->Config(),
|
||||
"SimpleOutput",
|
||||
"FilePath")
|
||||
: config_get_string(main->Config(), "AdvOut",
|
||||
"RecFilePath");
|
||||
const char *path = main->GetCurrentOutputPath();
|
||||
|
||||
#define MBYTE (1024ULL * 1024ULL)
|
||||
#define GBYTE (1024ULL * 1024ULL * 1024ULL)
|
||||
|
||||
Reference in new issue
Block a user