OSC: Fix aux mute to check stripable exists first
This commit is contained in:
parent
d1e7a5bd1c
commit
19e6273502
@ -3948,13 +3948,14 @@ OSC::cue_aux_mute (float state, lo_message msg)
|
||||
if (sur->cue) {
|
||||
if (sur->aux) {
|
||||
boost::shared_ptr<Stripable> s = get_strip (sur->aux, get_address (msg));
|
||||
|
||||
if (s) {
|
||||
if (s->mute_control()) {
|
||||
s->mute_control()->set_value (state ? 1.0 : 0.0, PBD::Controllable::NoGroup);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return cue_float_message ("/cue/mute", 0, get_address (msg));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user