diff --git a/libs/ardour/base_midi_port.cc b/libs/ardour/base_midi_port.cc index 3757d2221d..e1014610b3 100644 --- a/libs/ardour/base_midi_port.cc +++ b/libs/ardour/base_midi_port.cc @@ -18,7 +18,7 @@ #include #include - +#include #include #include @@ -61,9 +61,5 @@ BaseMidiPort::default_mixdown (const set& ports, MidiBuffer* dest, nframe void BaseMidiPort::set_mixdown_function (void (*func)(const set&, MidiBuffer*, nframes_t, nframes_t, bool)) { - /* caller should (but not must) hold process lock since this is an atomic operation on most platforms - and even if its not, it doesn't really matter. - */ - - _mixdown = func; + g_atomic_pointer_set(&_mixdown, func); }