fix threaded state restore (duplicate calls to restore during init)
authorRobin Gareus <robin@gareus.org>
Tue, 23 Aug 2016 11:40:42 +0000 (13:40 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 23 Aug 2016 11:46:11 +0000 (13:46 +0200)
commit4a831725af84d5b9ed013d51a0c9fef99041717c
treea8144a817f27517e9dd6aa721d42b62d68999e37
parent81c481f9756a29d9817e38ed79a895d8867cf618
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.
libs/ardour/ardour/lv2_plugin.h
libs/ardour/lv2_plugin.cc