mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-21 04:37:09 +08:00
libobs: Add function to get obs object type
This commit is contained in:
@@ -54,8 +54,8 @@ static bool init_encoder(struct obs_encoder *encoder, const char *name,
|
||||
return false;
|
||||
if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE) != 0)
|
||||
return false;
|
||||
if (!obs_context_data_init(&encoder->context, settings, name,
|
||||
hotkey_data, false))
|
||||
if (!obs_context_data_init(&encoder->context, OBS_OBJ_TYPE_ENCODER,
|
||||
settings, name, hotkey_data, false))
|
||||
return false;
|
||||
if (pthread_mutex_init(&encoder->init_mutex, &attr) != 0)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user