[obs] call debug_init() to initialize debug print

Fixes a segfault reported in discord, DEBUG_* macros are not available
until `debug_init()` has been called as of commit
1effd5fddc
This commit is contained in:
Geoffrey McRae 2021-07-13 07:40:56 +10:00
parent 789ee70674
commit 4d065d577b

View file

@ -22,6 +22,8 @@
#include <common/version.h>
#include <stdio.h>
#include "common/debug.h"
#ifdef _WIN32
#undef EXPORT
#define EXPORT __declspec(dllexport)
@ -38,6 +40,7 @@ extern struct obs_source_info lg_source;
MODULE_EXPORT bool obs_module_load(void)
{
debug_init();
printf("Looking Glass OBS Client (%s)\n", BUILD_VERSION);
obs_register_source(&lg_source);
return true;