From b4718b5cc8334489a1eb50df9db920bc0b01375c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Nov 2012 00:05:31 +0000 Subject: Fix Plugin=>UI ring overflow handling. Gracefully handle client receiving nodes with as-yet unknown plugins. Don't initially send all plugins to UI (kills LV2 in particular), request on demand instead. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4829 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/App.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/App.cpp') diff --git a/src/gui/App.cpp b/src/gui/App.cpp index 96bb1254..4174fbac 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -72,6 +72,7 @@ App::App(Ingen::World* world) , _world(world) , _sample_rate(48000) , _enable_signal(true) + , _requested_plugins(false) { Glib::set_application_name("Ingen"); gtk_window_set_default_icon_name("ingen"); @@ -187,6 +188,15 @@ App::detach() } } +void +App::request_plugins_if_necessary() +{ + if (!_requested_plugins) { + _world->interface()->get(Raul::URI("ingen:plugins")); + _requested_plugins = true; + } +} + SharedPtr App::serialiser() { -- cgit v1.2.1