From 13fce7e753577a7809b86ab8b3819db2232a86f6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 31 Oct 2007 20:08:00 +0000 Subject: [PATCH] Do unto MIDI as thou hath done unto audio. git-svn-id: svn://localhost/ardour2/trunk@2582 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/base_midi_port.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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); }