From b52a7b9cc85254abffc9adbbc7674746cb2d9ed8 Mon Sep 17 00:00:00 2001 From: Sampo Savolainen Date: Sun, 12 Feb 2006 15:40:58 +0000 Subject: [PATCH] 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 --- libs/ardour/insert.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/ardour/insert.cc b/libs/ardour/insert.cc index 3ef84d1481..1c73ef9d79 100644 --- a/libs/ardour/insert.cc +++ b/libs/ardour/insert.cc @@ -320,14 +320,14 @@ void PluginInsert::automation_snapshot (jack_nframes_t now) { map::iterator li; - + for (li = parameter_automation.begin(); li != parameter_automation.end(); ++li) { - AutomationList& alist (*((*li).second)); - if (alist.automation_write ()) { + AutomationList *alist = ((*li).second); + if (alist != 0 && alist->automation_write ()) { float val = _plugins[0]->get_parameter ((*li).first); - alist.rt_add (now, val); + alist->rt_add (now, val); last_automation_snapshot = now; } }