Prechádzať zdrojové kódy

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

Yuriy Chumak 2 rokov pred
rodič
commit
7dbc829c15
3 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 1 0
      UI/data/locale/en-US.ini
  2. 4 0
      UI/window-basic-main.cpp
  3. 1 0
      libobs/obs-defs.h

+ 1 - 0
UI/data/locale/en-US.ini

@@ -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."
 

+ 4 - 0
UI/window-basic-main.cpp

@@ -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;

+ 1 - 0
libobs/obs-defs.h

@@ -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