mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
modify MidiUI code to use crossthreadchannel on all platforms
This commit is contained in:
parent
d762ed8c22
commit
f4726cc6fa
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