0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

UI: Report detailed output errors for Replay Buffer

Same changes as 0c0ffb341c
This commit is contained in:
Matt Gajownik 2020-09-04 18:23:06 +10:00 committed by Jim
parent f190a9f7fb
commit bc7afb0fae

View File

@ -1809,9 +1809,15 @@ bool AdvancedOutput::StartReplayBuffer()
}
if (!obs_output_start(replayBuffer)) {
QString error_reason;
const char *error = obs_output_get_last_error(replayBuffer);
if (error)
error_reason = QT_UTF8(error);
else
error_reason = QTStr("Output.StartFailedGeneric");
QMessageBox::critical(main,
QTStr("Output.StartRecordingFailed"),
QTStr("Output.StartFailedGeneric"));
error_reason);
return false;
}