Skip to content

Commit

Permalink
obs-nvenc: Support new error code for too many sessions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
derrod authored and RytoEX committed Sep 10, 2024
1 parent 97d9826 commit 4b0777a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/obs-nvenc/nvenc-helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4b0777a

Please sign in to comment.