Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Unified Diff: media/midi/midi_manager_mac.cc

Issue 960213006: Web MIDI: newly attached device was not registered to listen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_manager_mac.cc
diff --git a/media/midi/midi_manager_mac.cc b/media/midi/midi_manager_mac.cc
index 8a9e06073e4052aee58f50e663fa67beba4d2bfa..0a2545ebed4e9e786b28eada302f0a4fcb4b68a7 100644
--- a/media/midi/midi_manager_mac.cc
+++ b/media/midi/midi_manager_mac.cc
@@ -223,6 +223,8 @@ void MidiManagerMac::ReceiveMidiNotify(const MIDINotification* message) {
source_map_[endpoint] = index;
MidiPortInfo info = GetPortInfoFromEndpoint(endpoint);
AddInputPort(info);
+ MIDIPortConnectSource(
+ coremidi_input_, endpoint, reinterpret_cast<void*>(endpoint));
} else {
uint32 index = it->second;
SetInputPortState(index, MIDI_PORT_OPENED);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698