diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-03 20:55:44 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-03 20:55:44 -0500 |
commit | f4726cc6fa4f351a97a4088a34c70207c3a371dc (patch) | |
tree | aca4b4148a57a616f32e6d0d24627c32c2130c7a /libs/ardour/midi_ui.cc | |
parent | d762ed8c22edb1007647b5540fa5059993f59f8c (diff) |
modify MidiUI code to use crossthreadchannel on all platforms
Diffstat (limited to 'libs/ardour/midi_ui.cc')
-rw-r--r-- | libs/ardour/midi_ui.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libs/ardour/midi_ui.cc b/libs/ardour/midi_ui.cc index ecdcb303e8..4b55f5d13e 100644 --- a/libs/ardour/midi_ui.cc +++ b/libs/ardour/midi_ui.cc @@ -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()); } } |