libobs: Add function to get obs object type

This commit is contained in:
jp9000
2016-02-26 18:18:00 -08:00
parent 826d5c08d7
commit d069302b2e
7 changed files with 31 additions and 10 deletions

View File

@@ -46,8 +46,8 @@ obs_service_t *obs_service_create(const char *id, const char *name,
service = bzalloc(sizeof(struct obs_service));
if (!obs_context_data_init(&service->context, settings, name,
hotkey_data, false)) {
if (!obs_context_data_init(&service->context, OBS_OBJ_TYPE_SERVICE,
settings, name, hotkey_data, false)) {
bfree(service);
return NULL;
}