From 3ec1eff3b271a0f8b6f00a039c991630dc40f0c8 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 7 Mar 2013 17:11:55 +0200 Subject: [PATCH] AVRCP: Fix reading wrong field as folder depth Folder depth is bit 10 of the parameters not the PDU operands --- 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 85da0c036..97961daf4 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -1943,7 +1943,7 @@ static gboolean avrcp_set_browsed_player_rsp(struct avctp *conn, items = bt_get_be32(&pdu->params[3]); - depth = operands[9]; + depth = pdu->params[9]; folders = g_new0(char *, depth + 2); folders[0] = g_strdup("/Filesystem"); -- 2.47.3