| 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..8a9ece014ed7198f9f07f2d08cded115b97d951a 100644
|
| --- a/media/midi/midi_manager_mac.cc
|
| +++ b/media/midi/midi_manager_mac.cc
|
| @@ -287,16 +287,18 @@ void MidiManagerMac::ReadMidi(MIDIEndpointRef source,
|
| uint32 port_index = source_map_[source];
|
|
|
| // Go through each packet and process separately.
|
| + const MIDIPacket* packet = &packet_list->packet[0];
|
| for (size_t i = 0; i < packet_list->numPackets; i++) {
|
| // Each packet contains MIDI data for one or more messages (like note-on).
|
| - const MIDIPacket &packet = packet_list->packet[i];
|
| - double timestamp_seconds = MIDITimeStampToSeconds(packet.timeStamp);
|
| + double timestamp_seconds = MIDITimeStampToSeconds(packet->timeStamp);
|
|
|
| ReceiveMidiData(
|
| port_index,
|
| - packet.data,
|
| - packet.length,
|
| + packet->data,
|
| + packet->length,
|
| timestamp_seconds);
|
| +
|
| + packet = MIDIPacketNext(packet);
|
| }
|
| }
|
|
|
|
|