From ccc03d68e8f173fb8988855c22e707641342ecb5 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 7 Dec 2016 11:05:06 +0200 Subject: [PATCH] audio/avrcp: Fix PlayItem response handling PlayItem is actually a control PDU so it should expect avrcp_header as header not avrcp_browsing_header. --- 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 a96fb935e..aa0085bbe 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -3105,7 +3105,7 @@ static gboolean avrcp_play_item_rsp(struct avctp *conn, uint8_t code, uint8_t *operands, size_t operand_count, void *user_data) { - struct avrcp_browsing_header *pdu = (void *) operands; + struct avrcp_header *pdu = (void *) operands; struct avrcp *session = (void *) user_data; struct avrcp_player *player = session->controller->player; struct media_player *mp = player->user_data; -- 2.47.3