From 0f6a603184ad41060099af0e021319c78a6a3bb3 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 23 Nov 2017 23:33:31 +0200 Subject: [PATCH] avrcp: Fix not parsing all items When using GetFolderItems to list media items it is valid to send duplicated as they can be repeated in the list. --- profiles/audio/avrcp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 2c1434da2..f440becb6 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -2526,11 +2526,8 @@ static gboolean avrcp_list_items_rsp(struct avctp *conn, uint8_t *operands, else item = parse_media_folder(session, &operands[i], len); - if (item) { - if (g_slist_find(p->items, item)) - goto done; + if (item) p->items = g_slist_append(p->items, item); - } i += len; } -- 2.47.3