UI: Add warning if starting the output fails
This is mainly to give visual feedback to those affected by NVENC not working with older driver versions. Currenlty obs fails silently which could go unnoticed for users who are using hotkeys as well as confuse users who are not trained to read their logs when issues occur. Closes jp9000/obs-studio#788
This commit is contained in:
parent
f83bd9facc
commit
6bc1ecc794
3 changed files with 29 additions and 6 deletions
|
|
@ -837,8 +837,13 @@ bool SimpleOutput::StartRecording()
|
|||
UpdateRecording();
|
||||
if (!ConfigureRecording(false))
|
||||
return false;
|
||||
if (!obs_output_start(fileOutput))
|
||||
if (!obs_output_start(fileOutput)) {
|
||||
QMessageBox::critical(main,
|
||||
QTStr("Output.StartRecordingFailed"),
|
||||
QTStr("Output.StartFailedGeneric"));
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -847,8 +852,13 @@ bool SimpleOutput::StartReplayBuffer()
|
|||
UpdateRecording();
|
||||
if (!ConfigureRecording(true))
|
||||
return false;
|
||||
if (!obs_output_start(replayBuffer))
|
||||
if (!obs_output_start(replayBuffer)) {
|
||||
QMessageBox::critical(main,
|
||||
QTStr("Output.StartReplayFailed"),
|
||||
QTStr("Output.StartFailedGeneric"));
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -1399,11 +1409,14 @@ bool AdvancedOutput::StartRecording()
|
|||
obs_data_release(settings);
|
||||
}
|
||||
|
||||
if (obs_output_start(fileOutput)) {
|
||||
return true;
|
||||
if (!obs_output_start(fileOutput)) {
|
||||
QMessageBox::critical(main,
|
||||
QTStr("Output.StartRecordingFailed"),
|
||||
QTStr("Output.StartFailedGeneric"));
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void AdvancedOutput::StopStreaming(bool force)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue