From: David Stockwell <dstockwell@xxxxxxxxxxxxxxxxx> --- audio/control.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/audio/control.c b/audio/control.c index 9990b06..8857737 100644 --- a/audio/control.c +++ b/audio/control.c @@ -195,6 +195,7 @@ enum media_info_id { MEDIA_INFO_N_TRACKS = 5, MEDIA_INFO_GENRE = 6, MEDIA_INFO_CURRENT_POSITION = 7, + MEDIA_INFO_LAST }; static DBusConnection *connection = NULL; @@ -1109,7 +1110,7 @@ static int avrcp_handle_get_element_attributes(struct control *control, * Return all available information, at least * title must be returned. */ - for (i = 1; i <= MEDIA_INFO_CURRENT_POSITION; i++) { + for (i = 1; i < MEDIA_INFO_LAST; i++) { size = mp_get_media_attribute(control->mp, i, &pdu->params[pos]); -- 1.7.6.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html