mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
libobs,UI: Add output failure code for HDR being unsupported
This commit is contained in:
@@ -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."
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user