diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2013-08-09 22:11:44 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2013-08-13 20:15:47 +1000 |
commit | 55c6d4f2be0335a5be7d2773924fade7aaee39b4 (patch) | |
tree | 968e8456e9d1d7518e4d2b2b427d8e0d80ad7d8e /libs | |
parent | 29193c76ccb2cdead8ee31b753945b6080994956 (diff) |
Call PBD::init in ARDOUR::init and PBD::cleanup in ARDOUR::cleanup
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/globals.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index 78994c4101..0941b72de8 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -60,6 +60,7 @@ #include "pbd/cpus.h" #include "pbd/error.h" #include "pbd/id.h" +#include "pbd/pbd.h" #include "pbd/strsplit.h" #include "pbd/fpu.h" #include "pbd/file_utils.h" @@ -224,9 +225,7 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir return true; } - if (!Glib::thread_supported()) { - Glib::thread_init(); - } + if (!PBD::init()) return false; // this really should be in PBD::init..if there was one Gio::init (); @@ -235,7 +234,6 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir (void) bindtextdomain(PACKAGE, localedir); #endif - PBD::ID::init (); SessionEvent::init_event_pool (); SessionObject::make_property_quarks (); @@ -373,7 +371,7 @@ ARDOUR::cleanup () #ifdef LXVST_SUPPORT vstfx_exit(); #endif - EnumWriter::destroy (); + PBD::cleanup (); return 0; } |