0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

ao_coreaudio: cosmetic change of loop ending condition

This commit is contained in:
Stefano Pigozzi 2014-05-08 08:05:48 +02:00
parent eb9d7d5c78
commit 39b316ff06

View File

@ -371,7 +371,7 @@ static const int speaker_map[][2] = {
static int ca_label_to_mp_speaker_id(AudioChannelLabel label)
{
for (int i = 0; speaker_map[i][0] != kAudioChannelLabel_Unknown; i++)
for (int i = 0; speaker_map[i][1] >= 0; i++)
if (speaker_map[i][0] == label)
return speaker_map[i][1];
return -1;