13
0

some generic midi debugging plus an assert

git-svn-id: svn://localhost/ardour2/branches/3.0@12950 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-06-26 20:49:52 +00:00
parent dde521f2c6
commit 266030b79c

View File

@ -210,6 +210,7 @@ MIDIControllable::lookup_controllable()
void
MIDIControllable::drop_controllable ()
{
cerr << "removed controllable\n";
controllable_death_connection.disconnect ();
controllable = 0;
}
@ -243,6 +244,8 @@ MIDIControllable::midi_sense_controller (Parser &, EventTwoBytes *msg)
}
}
assert (controllable);
if (controllable->touching()) {
return; // to prevent feedback fights when e.g. dragging a UI slider
}