obs-ffmpeg: Use new encoder error handling functions

This commit is contained in:
Richard Stanway
2019-10-09 18:28:26 +02:00
committed by Richard Stanway
parent 5dc9f989d6
commit 5e3e9c1f13
6 changed files with 78 additions and 27 deletions

View File

@@ -12,4 +12,6 @@ typedef NVENCSTATUS(NVENCAPI *NV_CREATE_INSTANCE_FUNC)(
extern const char *nv_error_name(NVENCSTATUS err);
extern NV_ENCODE_API_FUNCTION_LIST nv;
extern NV_CREATE_INSTANCE_FUNC nv_create_instance;
extern bool init_nvenc(void);
extern bool init_nvenc(obs_encoder_t *encoder);
bool nv_failed(obs_encoder_t *encoder, NVENCSTATUS err, const char *func,
const char *call);