mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
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.
This commit is contained in:
parent
97d9826352
commit
4b0777a303
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user