Chromium Code Reviews| Index: media/midi/midi_manager_mac.cc |
| diff --git a/media/midi/midi_manager_mac.cc b/media/midi/midi_manager_mac.cc |
| index 658cfcdf593629f9b70f457649ba91229bc7d260..048432d5711c57ae4008f42235715bde6ff41ebc 100644 |
| --- a/media/midi/midi_manager_mac.cc |
| +++ b/media/midi/midi_manager_mac.cc |
| @@ -51,11 +51,13 @@ MidiPortInfo GetPortInfoFromEndpoint(MIDIEndpointRef endpoint) { |
| string name; |
| CFStringRef name_ref = NULL; |
| - result = MIDIObjectGetStringProperty(endpoint, kMIDIPropertyName, &name_ref); |
| + result = MIDIObjectGetStringProperty(endpoint, kMIDIPropertyDisplayName, |
|
Takashi Toyoshima
2015/03/24 05:11:59
This is available on Core MIDI 1.5 and laters.
Can
|
| + &name_ref); |
| if (result == noErr) |
| name = SysCFStringRefToUTF8(name_ref); |
| else |
| - DLOG(WARNING) << "Failed to get kMIDIPropertyName with status " << result; |
| + DLOG(WARNING) << "Failed to get kMIDIPropertyDisplayName with status " |
| + << result; |
| string version; |
| SInt32 version_number = 0; |