obs-ffmpeg: Don't try to detect NVENC on mac
This commit is contained in:
@@ -4,8 +4,11 @@
|
||||
#include <libavutil/log.h>
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#ifndef __APPLE__
|
||||
#include "dynlink_cuda.h"
|
||||
#include "nvEncodeAPI.h"
|
||||
#endif
|
||||
|
||||
#define NVENC_CAP 0x30
|
||||
|
||||
@@ -120,6 +123,8 @@ cleanup:
|
||||
destroy_log_context(log_context);
|
||||
}
|
||||
|
||||
#ifndef __APPLE__
|
||||
|
||||
static const char *nvenc_check_name = "nvenc_check";
|
||||
|
||||
static inline bool push_context_(tcuCtxPushCurrent_v2 *cuCtxPushCurrent,
|
||||
@@ -299,6 +304,8 @@ cleanup:
|
||||
return success;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
bool obs_module_load(void)
|
||||
{
|
||||
da_init(active_log_contexts);
|
||||
@@ -312,10 +319,12 @@ bool obs_module_load(void)
|
||||
obs_register_output(&replay_buffer);
|
||||
obs_register_encoder(&aac_encoder_info);
|
||||
obs_register_encoder(&opus_encoder_info);
|
||||
#ifndef __APPLE__
|
||||
if (nvenc_supported()) {
|
||||
blog(LOG_INFO, "NVENC supported");
|
||||
obs_register_encoder(&nvenc_encoder_info);
|
||||
}
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user