提交 ea7bb7a7 编写于 作者: R Richard Stanway

obs-ffmpeg: Show friendly error for NV_ENC_ERR_INVALID_VERSION

上级 4ed3df14
...@@ -29,6 +29,11 @@ bool nv_failed(obs_encoder_t *encoder, NVENCSTATUS err, const char *func, ...@@ -29,6 +29,11 @@ bool nv_failed(obs_encoder_t *encoder, NVENCSTATUS err, const char *func,
encoder, obs_module_text("NVENC.UnsupportedDevice")); encoder, obs_module_text("NVENC.UnsupportedDevice"));
break; break;
case NV_ENC_ERR_INVALID_VERSION:
obs_encoder_set_last_error(
encoder, obs_module_text("NVENC.OutdatedDriver"));
break;
default: default:
dstr_printf(&error_message, dstr_printf(&error_message,
"NVENC Error: %s: %s failed: %d (%s)", func, call, "NVENC Error: %s: %s failed: %d (%s)", func, call,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册