A band aid for plugin editor related crash. Something needs to be
figured out which does not include locking between the GUI and the RT thread. git-svn-id: svn://localhost/trunk/ardour2@319 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
aa554c5d73
commit
b52a7b9cc8
@ -323,11 +323,11 @@ PluginInsert::automation_snapshot (jack_nframes_t now)
|
|||||||
|
|
||||||
for (li = parameter_automation.begin(); li != parameter_automation.end(); ++li) {
|
for (li = parameter_automation.begin(); li != parameter_automation.end(); ++li) {
|
||||||
|
|
||||||
AutomationList& alist (*((*li).second));
|
AutomationList *alist = ((*li).second);
|
||||||
if (alist.automation_write ()) {
|
if (alist != 0 && alist->automation_write ()) {
|
||||||
|
|
||||||
float val = _plugins[0]->get_parameter ((*li).first);
|
float val = _plugins[0]->get_parameter ((*li).first);
|
||||||
alist.rt_add (now, val);
|
alist->rt_add (now, val);
|
||||||
last_automation_snapshot = now;
|
last_automation_snapshot = now;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user