From 4b0777a303c1391dba70bf1cda989890345f6726 Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 10 Sep 2024 18:54:55 +0200 Subject: [PATCH] obs-nvenc: Support new error code for too many sessions At some point NVIDIA started using NV_ENC_ERR_INCOMPATIBLE_CLIENT_KEY instead of NV_ENC_ERR_OUT_OF_MEMORY to signal that the session limit has been exceeded. --- plugins/obs-nvenc/nvenc-helpers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/obs-nvenc/nvenc-helpers.c b/plugins/obs-nvenc/nvenc-helpers.c index 455831e7dbf041..9bd89b03c6abb5 100644 --- a/plugins/obs-nvenc/nvenc-helpers.c +++ b/plugins/obs-nvenc/nvenc-helpers.c @@ -64,6 +64,7 @@ bool nv_failed2(obs_encoder_t *encoder, void *session, NVENCSTATUS err, switch (err) { case NV_ENC_ERR_OUT_OF_MEMORY: + case NV_ENC_ERR_INCOMPATIBLE_CLIENT_KEY: obs_encoder_set_last_error(encoder, obs_module_text("TooManySessions")); break;