From 90766eea0010f3ec87274ed18679ef6c73e1a33b Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 11 Jun 2013 15:32:21 +0300 Subject: [PATCH] AVRCP: Allways fallback to GetElementAttributes if GetItemAttributes fails Although GetItemAttributes is mandatory when browsing is supported this depend on the actual browsed player which may still not support it. --- profiles/audio/avrcp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index d03b41989..929d9e86c 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -2160,8 +2160,7 @@ static gboolean avrcp_get_item_attributes_rsp(struct avctp *conn, } if (pdu->params[0] != AVRCP_STATUS_SUCCESS || operand_count < 4) { - if (pdu->params[0] == AVRCP_STATUS_PLAYER_NOT_BROWSABLE) - avrcp_get_element_attributes(session); + avrcp_get_element_attributes(session); return FALSE; } -- 2.11.0