13
0

OSC: Fix aux mute to check stripable exists first

This commit is contained in:
Len Ovens 2017-01-10 22:09:30 -08:00
parent d1e7a5bd1c
commit 19e6273502

View File

@ -3948,10 +3948,11 @@ 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->mute_control()) {
s->mute_control()->set_value (state ? 1.0 : 0.0, PBD::Controllable::NoGroup);
return 0;
if (s) {
if (s->mute_control()) {
s->mute_control()->set_value (state ? 1.0 : 0.0, PBD::Controllable::NoGroup);
return 0;
}
}
}
}