Browse Source

obs-ffmpeg: Handle NV_ENC_ERR_NO_ENCODE_DEVICE error

Richard Stanway 2 years ago
parent
commit
25f01357e6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/obs-ffmpeg/jim-nvenc-helpers.c

+ 1 - 0
plugins/obs-ffmpeg/jim-nvenc-helpers.c

@@ -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"));