From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> 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 c100149..90faa1d 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.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html