obs-ffmpeg: Handle NV_ENC_ERR_NO_ENCODE_DEVICE error

This commit is contained in:
Richard Stanway
2023-02-17 11:19:08 -05:00
committed by Ryan Foster
parent 7dae8d307c
commit 25f01357e6
+1
View File
@@ -58,6 +58,7 @@ bool nv_failed2(obs_encoder_t *encoder, void *session, NVENCSTATUS err,
encoder, obs_module_text("NVENC.TooManySessions"));
break;
case NV_ENC_ERR_NO_ENCODE_DEVICE:
case NV_ENC_ERR_UNSUPPORTED_DEVICE:
obs_encoder_set_last_error(
encoder, obs_module_text("NVENC.UnsupportedDevice"));