mac-videotoolbox: Make unsupported color format text codec agnostic

This commit is contained in:
gxalpha 2022-10-23 03:04:30 +02:00 committed by Patrick Heyer
parent 44c824985c
commit a352f0fdd8
2 changed files with 2 additions and 2 deletions

View file

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

View file

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