libobs,UI: Add output failure code for HDR being unsupported

This commit is contained in:
Yuriy Chumak 2023-03-25 11:51:42 +01:00 committed by derrod
parent 2d4f0ac440
commit 7dbc829c15
3 changed files with 6 additions and 0 deletions

View file

@ -402,6 +402,7 @@ Output.ConnectFail.Title="Failed to connect"
Output.ConnectFail.BadPath="Invalid Path or Connection URL. Please check your settings to confirm that they are valid."
Output.ConnectFail.ConnectFailed="Failed to connect to server"
Output.ConnectFail.InvalidStream="Could not access the specified channel or stream key, please double-check your stream key. If it is correct, there may be a problem connecting to the server."
Output.ConnectFail.HdrDisabled="HDR output is currently disabled for this output."
Output.ConnectFail.Error="An unexpected error occurred when trying to connect to the server. More information in the log file."
Output.ConnectFail.Disconnected="Disconnected from server."

View file

@ -7282,6 +7282,10 @@ void OBSBasic::StreamingStop(int code, QString last_error)
encode_error = true;
break;
case OBS_OUTPUT_HDR_DISABLED:
errorDescription = Str("Output.ConnectFail.HdrDisabled");
break;
default:
case OBS_OUTPUT_ERROR:
use_last_error = true;

View file

@ -42,6 +42,7 @@
#define OBS_OUTPUT_UNSUPPORTED -6
#define OBS_OUTPUT_NO_SPACE -7
#define OBS_OUTPUT_ENCODE_ERROR -8
#define OBS_OUTPUT_HDR_DISABLED -9
#define OBS_VIDEO_SUCCESS 0
#define OBS_VIDEO_FAIL -1