mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
push2: fix a couple of potential crashes
This commit is contained in:
parent
7b855f0cc5
commit
681ca38848
2 changed files with 7 additions and 1 deletions
|
|
@ -543,7 +543,9 @@ CueLayout::show_running_boxen (bool yn)
|
|||
}
|
||||
|
||||
boost::shared_ptr<TriggerBox> tb = _route[n]->triggerbox();
|
||||
assert (tb);
|
||||
if (!tb) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (yn) {
|
||||
|
||||
|
|
|
|||
|
|
@ -172,6 +172,10 @@ P2GUI::update_port_combos ()
|
|||
std::vector<std::string> midi_inputs;
|
||||
std::vector<std::string> midi_outputs;
|
||||
|
||||
if (!_p2.input_port() || !_p2.output_port()) {
|
||||
return;
|
||||
}
|
||||
|
||||
ARDOUR::AudioEngine::instance()->get_ports ("", ARDOUR::DataType::MIDI, ARDOUR::PortFlags (ARDOUR::IsOutput|ARDOUR::IsTerminal), midi_inputs);
|
||||
ARDOUR::AudioEngine::instance()->get_ports ("", ARDOUR::DataType::MIDI, ARDOUR::PortFlags (ARDOUR::IsInput|ARDOUR::IsTerminal), midi_outputs);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue