Fix crash when showing external send GUI
This commit is contained in:
parent
4a7c615714
commit
fb8db038f7
@ -1163,7 +1163,8 @@ GainMeter::meter_configuration_changed (ChanCount c)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (boost::dynamic_pointer_cast<AudioTrack>(_route) == 0
|
if (_route
|
||||||
|
&& boost::dynamic_pointer_cast<AudioTrack>(_route) == 0
|
||||||
&& boost::dynamic_pointer_cast<MidiTrack>(_route) == 0
|
&& boost::dynamic_pointer_cast<MidiTrack>(_route) == 0
|
||||||
) {
|
) {
|
||||||
if (_route->active()) {
|
if (_route->active()) {
|
||||||
@ -1173,20 +1174,20 @@ GainMeter::meter_configuration_changed (ChanCount c)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (type == (1 << DataType::AUDIO)) {
|
else if (type == (1 << DataType::AUDIO)) {
|
||||||
if (_route->active()) {
|
if (!_route || _route->active()) {
|
||||||
set_meter_strip_name ("AudioTrackMetrics");
|
set_meter_strip_name ("AudioTrackMetrics");
|
||||||
} else {
|
} else {
|
||||||
set_meter_strip_name ("AudioTrackMetricsInactive");
|
set_meter_strip_name ("AudioTrackMetricsInactive");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (type == (1 << DataType::MIDI)) {
|
else if (type == (1 << DataType::MIDI)) {
|
||||||
if (_route->active()) {
|
if (!_route || _route->active()) {
|
||||||
set_meter_strip_name ("MidiTrackMetrics");
|
set_meter_strip_name ("MidiTrackMetrics");
|
||||||
} else {
|
} else {
|
||||||
set_meter_strip_name ("MidiTrackMetricsInactive");
|
set_meter_strip_name ("MidiTrackMetricsInactive");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (_route->active()) {
|
if (!_route || _route->active()) {
|
||||||
set_meter_strip_name ("AudioMidiTrackMetrics");
|
set_meter_strip_name ("AudioMidiTrackMetrics");
|
||||||
} else {
|
} else {
|
||||||
set_meter_strip_name ("AudioMidiTrackMetricsInactive");
|
set_meter_strip_name ("AudioMidiTrackMetricsInactive");
|
||||||
|
Loading…
Reference in New Issue
Block a user