summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-08-23 13:40:42 +0200
committerRobin Gareus <robin@gareus.org>2016-08-23 13:46:11 +0200
commit4a831725af84d5b9ed013d51a0c9fef99041717c (patch)
treea8144a817f27517e9dd6aa721d42b62d68999e37 /libs/ardour/ardour
parent81c481f9756a29d9817e38ed79a895d8867cf618 (diff)
fix threaded state restore (duplicate calls to restore during init)
and also allow immediate work during use latency-compute runs. At session load, Ardour calls a plugins "set default" state (GUI thread). Some plugins may schedule work during state-restore. Ardour immediately proceeded to restore the actual session plugin state without processing the already scheduled work and without calling run() for a plugin to apply state synchronously.
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/lv2_plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/lv2_plugin.h b/libs/ardour/ardour/lv2_plugin.h
index 27ed9bbd29..269c158714 100644
--- a/libs/ardour/ardour/lv2_plugin.h
+++ b/libs/ardour/ardour/lv2_plugin.h
@@ -312,7 +312,7 @@ class LIBARDOUR_API LV2Plugin : public ARDOUR::Plugin, public ARDOUR::Workee
void init (const void* c_plugin, framecnt_t rate);
void allocate_atom_event_buffers ();
- void run (pframes_t nsamples);
+ void run (pframes_t nsamples, bool sync_work = false);
void load_supported_properties(PropertyDescriptors& descs);