From b012b92d0cd995674ccc5ae48783b4a765282ee4 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 30 Jan 2014 14:47:14 -0800 Subject: [PATCH] audio/AVRCP: Fix using the wrong octet for folder type Folder type is the 9 octet not the 10. --- profiles/audio/avrcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 8c2920f70..758940ab1 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -2150,7 +2150,7 @@ static struct media_item *parse_media_folder(struct avrcp *session, return NULL; uid = bt_get_be64(&operands[0]); - type = operands[9]; + type = operands[8]; namelen = MIN(bt_get_be16(&operands[12]), sizeof(name) - 1); if (namelen > 0) { -- 2.47.3