diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2015-08-31 15:02:37 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2015-09-02 14:36:43 +0300 |
commit | dfd8fa85a1666ab4c20b55701bc6266c32f33c0e (patch) | |
tree | 05e7cbc29c9790c88f617ccabb1558b811c26e40 | |
parent | fa093a1d1f6bd02a6989f83e63297e57ef0e08d5 (diff) | |
download | bluez-dfd8fa85a1666ab4c20b55701bc6266c32f33c0e.tar.gz |
audio/avrcp: Fix not listing all players
To list the available player GetFolderItems with scope 0x00 is used but
the code currently don't set the range which means only the first player
is returned.
-rw-r--r-- | profiles/audio/avrcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index d2b006539..48c302a24 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -3247,6 +3247,8 @@ static void avrcp_get_media_player_list(struct avrcp *session) memset(buf, 0, sizeof(buf)); pdu->pdu_id = AVRCP_GET_FOLDER_ITEMS; + put_be32(0, &pdu->params[1]); + put_be32(UINT32_MAX, &pdu->params[5]); pdu->param_len = htons(10); avctp_send_browsing_req(session->conn, buf, sizeof(buf), |