From 4d065d577b0f5fb0f4144cc978f85a9f80803385 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 13 Jul 2021 07:40:56 +1000 Subject: [PATCH] [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 1effd5fddc073d4ce7a46a32212b713578bcb288 --- obs/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/obs/main.c b/obs/main.c index 12d5e4fe..ef6798c7 100644 --- a/obs/main.c +++ b/obs/main.c @@ -22,6 +22,8 @@ #include #include +#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;