X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmain.cc;h=d3e31e911aaebda33e752306326609b895621374;hb=7d8b93add17620135eadee5029325a3d22512b12;hp=9c9981bcc382087363e888ec44f32ef781681868;hpb=f9e5e4360e54f5ff5327b4384ee451d86f8dec91;p=ardour.git diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index 9c9981bcc3..d3e31e911a 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -31,6 +31,8 @@ #include #endif +#include + #include "pbd/error.h" #include "pbd/file_utils.h" #include "pbd/textreceiver.h" @@ -135,7 +137,7 @@ static void ardour_g_log (const gchar *log_domain, GLogLevelFlags log_level, con static gboolean tell_about_backend_death (void* /* ignored */) { - if (AudioEngine::instance()->processed_frames() == 0) { + if (AudioEngine::instance()->processed_samples() == 0) { /* died during startup */ MessageDialog msg (string_compose (_("The audio backend (%1) has failed, or terminated"), AudioEngine::instance()->current_backend_name()), false); msg.set_position (Gtk::WIN_POS_CENTER); @@ -288,6 +290,11 @@ int main (int argc, char *argv[]) { ARDOUR::check_for_old_configuration_files(); + /* global init is not thread safe.*/ + if (curl_global_init (CURL_GLOBAL_DEFAULT)) { + cerr << "curl_global_init() failed. The web is gone. We're all doomed." << endl; + } + fixup_bundle_environment (argc, argv, localedir); load_custom_fonts(); /* needs to happen before any gtk and pango init calls */ @@ -304,7 +311,7 @@ int main (int argc, char *argv[]) fftwf_make_planner_thread_safe (); #endif -#ifdef ENABLE_NLS +#if ENABLE_NLS /* initialize C locale to user preference */ if (ARDOUR::translations_are_enabled ()) { setlocale (LC_ALL, ""); @@ -320,7 +327,7 @@ int main (int argc, char *argv[]) windows_vst_gui_init (&argc, &argv); #endif -#ifdef ENABLE_NLS +#if ENABLE_NLS cerr << "bind txt domain [" << PACKAGE << "] to " << localedir << endl; (void) bindtextdomain (PACKAGE, localedir.c_str()); @@ -366,7 +373,7 @@ int main (int argc, char *argv[]) } if (no_splash) { - cerr << _("Copyright (C) 1999-2015 Paul Davis") << endl + cerr << _("Copyright (C) 1999-2018 Paul Davis") << endl << _("Some portions Copyright (C) Steve Harris, Ari Johnson, Brett Viren, Joel Baker, Robin Gareus") << endl << endl << string_compose (_("%1 comes with ABSOLUTELY NO WARRANTY"), PROGRAM_NAME) << endl