diff --git a/src/rtmidi.cpp b/src/rtmidi.cpp index c0605480..946fc9fe 100644 --- a/src/rtmidi.cpp +++ b/src/rtmidi.cpp @@ -74,16 +74,14 @@ struct RtMidiInputDevice : midi::InputDevice { if (!userData) return; - system::setThreadName("RtMidi input"); - - RtMidiInputDevice* midiInputDevice = (RtMidiInputDevice*) userData; - if (!midiInputDevice) + RtMidiInputDevice* that = (RtMidiInputDevice*) userData; + if (!that) return; midi::Message msg; msg.bytes = std::vector(message->begin(), message->end()); // Don't set msg.frame from timeStamp here, because it's set in onMessage(). - midiInputDevice->onMessage(msg); + that->onMessage(msg); } };