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

Unified Diff: media/midi/midi_manager_mac.cc

Issue 1025903003: Use kMIDIPropertyDisplayName instead of kMIDIPropertyName (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 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;
« 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