mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-15 15:04:34 +08:00
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.
This commit is contained in:
parent
713518331d
commit
0f6a603184
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user