android/avrcp: Fix adding missing breaks

This commit is contained in:
Andrei Emeltchenko 2014-06-16 10:57:47 +03:00 committed by Szymon Janc
parent dc0b16f00e
commit f6ccdc2c16

View File

@ -569,18 +569,22 @@ static bool check_value(uint8_t attr, uint8_t number, const uint8_t *values)
if (values[i] < AVRCP_EQUALIZER_OFF ||
values[i] > AVRCP_EQUALIZER_ON)
return false;
break;
case AVRCP_ATTRIBUTE_REPEAT_MODE:
if (values[i] < AVRCP_REPEAT_MODE_OFF ||
values[i] > AVRCP_REPEAT_MODE_GROUP)
return false;
break;
case AVRCP_ATTRIBUTE_SHUFFLE:
if (values[i] < AVRCP_SHUFFLE_OFF ||
values[i] > AVRCP_SHUFFLE_GROUP)
return false;
break;
case AVRCP_ATTRIBUTE_SCAN:
if (values[i] < AVRCP_SCAN_OFF ||
values[i] > AVRCP_SCAN_GROUP)
return false;
break;
}
}