mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Fix crash when MackieControlProtocol has gone away.
git-svn-id: svn://localhost/ardour2/branches/3.0@12634 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
9dc61bff3a
commit
2492b43b56
1 changed files with 2 additions and 1 deletions
|
|
@ -47,7 +47,8 @@ Fader::set_position (float normalized)
|
|||
MidiByteArray
|
||||
Fader::update_message ()
|
||||
{
|
||||
if (MackieControlProtocol::instance()->flip_mode() == MackieControlProtocol::Zero) {
|
||||
MackieControlProtocol* mcp = MackieControlProtocol::instance ();
|
||||
if (mcp && mcp->flip_mode() == MackieControlProtocol::Zero) {
|
||||
/* do not send messages to move the faders when in this mode */
|
||||
return MidiByteArray();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue