Console needs to be set up early on

If there is any output printed before setting up the console,
there will be no output at all.
This commit is contained in:
Robin Gareus 2020-09-29 16:46:00 +02:00
parent d97b0fbf96
commit c45982ee5a
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -235,6 +235,8 @@ int nomain (int argc, char *argv[])
int main (int argc, char *argv[]) int main (int argc, char *argv[])
#endif #endif
{ {
console_madness_begin();
ARDOUR::check_for_old_configuration_files(); ARDOUR::check_for_old_configuration_files();
/* global init is not thread safe.*/ /* global init is not thread safe.*/
@ -263,8 +265,6 @@ int main (int argc, char *argv[])
} }
#endif #endif
console_madness_begin();
#if (defined WINDOWS_VST_SUPPORT && !defined PLATFORM_WINDOWS) #if (defined WINDOWS_VST_SUPPORT && !defined PLATFORM_WINDOWS)
/* this does some magic that is needed to make GTK and X11 client interact properly. /* this does some magic that is needed to make GTK and X11 client interact properly.
* the platform dependent code is in windows_vst_plugin_ui.cc * the platform dependent code is in windows_vst_plugin_ui.cc