Skip to content

Commit

Permalink
Log CEF version *after* library is loaded on macOS
Browse files Browse the repository at this point in the history
This fixes a crash on startup introduced in f93675c
  • Loading branch information
WizardCM committed Feb 28, 2022
1 parent f4f1c11 commit cbce71d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions obs-browser-plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,11 +696,6 @@ static void check_hwaccel_support(void)

bool obs_module_load(void)
{
blog(LOG_INFO, "[obs-browser]: Version %s", OBS_BROWSER_VERSION_STRING);
blog(LOG_INFO,
"[obs-browser]: CEF Version %i.%i.%i.%i (runtime), %s (compiled)",
cef_version_info(4), cef_version_info(5), cef_version_info(6),
cef_version_info(7), CEF_VERSION);
#ifdef USE_QT_LOOP
qRegisterMetaType<MessageTask>("MessageTask");
#endif
Expand All @@ -719,6 +714,12 @@ bool obs_module_load(void)
return false;
#endif
#endif
blog(LOG_INFO, "[obs-browser]: Version %s", OBS_BROWSER_VERSION_STRING);
blog(LOG_INFO,
"[obs-browser]: CEF Version %i.%i.%i.%i (runtime), %s (compiled)",
cef_version_info(4), cef_version_info(5), cef_version_info(6),
cef_version_info(7), CEF_VERSION);

RegisterBrowserSource();
obs_frontend_add_event_callback(handle_obs_frontend_event, nullptr);

Expand Down

0 comments on commit cbce71d

Please sign in to comment.