diff options
author | Robin Gareus <robin@gareus.org> | 2017-09-09 03:07:01 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-09-09 03:08:46 +0200 |
commit | 7872e4033f236356f0b5a10d0a4eb889adca52d2 (patch) | |
tree | 4dfdca42959c925faa3f97d7544125a22b5c125a /libs/ardour/ardour/lv2_plugin.h | |
parent | b43fd4ad0e3b45dd44e0d5d28c6b696cfd16583e (diff) |
LV2/midnam tweaks - fix race conditions
* Emit signal once midnam was actually updated
* only re-read midnam if was it changed. This allows idempotent calls to
read_midnam() - from the same thread.
At session-load a synth-plugin may load a soundfont in the background
and emit midnam_update() after the synth was initialized but before the
GUI thread connects to the signal. By making the call idempotent the
GUI can call read_midnam() after connecting to the signal to catch up.
Diffstat (limited to 'libs/ardour/ardour/lv2_plugin.h')
-rw-r--r-- | libs/ardour/ardour/lv2_plugin.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/ardour/lv2_plugin.h b/libs/ardour/ardour/lv2_plugin.h index d4b6ca819f..c3d437b6f7 100644 --- a/libs/ardour/ardour/lv2_plugin.h +++ b/libs/ardour/ardour/lv2_plugin.h @@ -344,6 +344,7 @@ class LIBARDOUR_API LV2Plugin : public ARDOUR::Plugin, public ARDOUR::Workee bool has_midnam (); bool read_midnam (); std::string midnam_model (); + bool _midnam_dirty; #endif void latency_compute_run (); |