From c320dbec4f169d11bb15e9215b46fbd4a96dd913 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 16 Aug 2016 17:36:43 +0300 Subject: [PATCH] audio/avrcp: Fix not setting player id The id shall be initialized properly otherwise it maybe reused by another player since its id will be 0 which is reserved as placeholder when discovering the player list. --- profiles/audio/avrcp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index c100149ac..90faa1de5 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -3212,6 +3212,7 @@ static struct avrcp_player *create_ct_player(struct avrcp *session, const char *path; player = g_new0(struct avrcp_player, 1); + player->id = id; player->sessions = g_slist_prepend(player->sessions, session); path = device_get_path(session->dev); -- 2.47.3