mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
part 2 of adjust MIDI UI object to use new CrossThreadChannel API
This commit is contained in:
parent
5946cb0524
commit
13fb8631aa
1 changed files with 2 additions and 7 deletions
|
|
@ -123,13 +123,8 @@ MidiControlUI::reset_ports ()
|
|||
}
|
||||
|
||||
for (vector<AsyncMIDIPort*>::const_iterator pi = ports.begin(); pi != ports.end(); ++pi) {
|
||||
|
||||
Glib::RefPtr<IOSource> psrc = (*pi)->ios();
|
||||
|
||||
if (psrc) {
|
||||
psrc->connect (sigc::bind (sigc::mem_fun (this, &MidiControlUI::midi_input_handler), *pi));
|
||||
psrc->attach (_main_loop->get_context());
|
||||
}
|
||||
(*pi)->xthread().set_receive_handler (sigc::bind (sigc::mem_fun (this, &MidiControlUI::midi_input_handler), *pi));
|
||||
(*pi)->xthread().attach (_main_loop->get_context());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue