obs-ffmpeg: Show friendly error for NV_ENC_ERR_INVALID_VERSION

This commit is contained in:
Richard Stanway 2020-05-24 14:42:14 +02:00
parent 4ed3df14a6
commit ea7bb7a7cd

View File

@ -29,6 +29,11 @@ bool nv_failed(obs_encoder_t *encoder, NVENCSTATUS err, const char *func,
encoder, obs_module_text("NVENC.UnsupportedDevice"));
break;
case NV_ENC_ERR_INVALID_VERSION:
obs_encoder_set_last_error(
encoder, obs_module_text("NVENC.OutdatedDriver"));
break;
default:
dstr_printf(&error_message,
"NVENC Error: %s: %s failed: %d (%s)", func, call,