mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
UI: Report detailed output errors for Replay Buffer
Same changes as 0c0ffb341c
This commit is contained in:
parent
f190a9f7fb
commit
bc7afb0fae
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user