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
1 changed files with 1 additions and 1 deletions

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;