diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-14 17:41:29 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-14 17:41:29 +0000 |
commit | c66955386ecfb86b3dd2b137a8e6e4143711f329 (patch) | |
tree | 5da85b4fcf3b6c0c4c8cf2f4a49d2ed1eb88a147 /libs/ardour/globals.cc | |
parent | 28f328e09c6227ab6248c91ae0690a02d9d23300 (diff) |
make PluginManager API more in line with other singletons; do initial plugin discovery before beginning to construct the UI, so that if plugins create GUIs (e.g for license verification) they don't cause a run loop to catch the UIManager in an inconsistent state with menus defined but actions missing
git-svn-id: svn://localhost/ardour2/branches/3.0@10586 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/globals.cc')
-rw-r--r-- | libs/ardour/globals.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index 0a4ec4cab3..f1a0f71847 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -334,7 +334,7 @@ ARDOUR::init (bool use_vst, bool try_optimization) Analyser::init (); /* singleton - first object is "it" */ - new PluginManager (); + (void) PluginManager::instance(); ProcessThread::init (); BufferManager::init (10); // XX should be num_processors_for_dsp + 1 for the GUI thread @@ -374,6 +374,10 @@ ARDOUR::init_post_engine () if ((node = Config->control_protocol_state()) != 0) { ControlProtocolManager::instance().set_state (*node, Stateful::loading_state_version); } + + /* find plugins */ + + ARDOUR::PluginManager::instance().refresh (); } int |