Browse Source

mac-videotoolbox: Make unsupported color format text codec agnostic

gxalpha 3 years ago
parent
commit
a352f0fdd8

+ 1 - 1
plugins/mac-videotoolbox/data/locale/en-US.ini

@@ -15,7 +15,7 @@ KeyframeIntervalSec="Keyframe Interval (0=auto)"
 Profile="Profile"
 UseBFrames="Use B-Frames"
 RateControl="Rate Control"
-ColorFormatUnsupportedH264="The selected color format is not supported by the Apple VT H.264 encoder. Select a compatible color format in Settings -> Advanced or use a different encoder."
+ColorFormatUnsupported="The selected color format is not supported by the selected Apple VT encoder. Select a compatible color format in Settings -> Advanced or use a different encoder."
 ProResCodec="ProRes Codec"
 ProRes422Proxy="ProRes 422 Proxy"
 ProRes422LT="ProRes 422 LT"

+ 1 - 1
plugins/mac-videotoolbox/encoder.c

@@ -585,7 +585,7 @@ static bool update_params(struct vt_encoder *enc, obs_data_t *settings)
 	if (!set_video_format(enc, voi->format, voi->range)) {
 		obs_encoder_set_last_error(
 			enc->encoder,
-			obs_module_text("ColorFormatUnsupportedH264"));
+			obs_module_text("ColorFormatUnsupported"));
 		VT_BLOG(LOG_WARNING, "Unsupported color format selected");
 		return false;
 	}