--- profiles/audio/avrcp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 11de6ee..3826a91 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -3662,6 +3662,7 @@ struct avrcp_player *avrcp_register_player(struct btd_adapter *adapter, struct avrcp_server *server; struct avrcp_player *player; GSList *l; + static uint16_t id = 0; server = find_server(servers, adapter); if (!server) @@ -3672,6 +3673,7 @@ struct avrcp_player *avrcp_register_player(struct btd_adapter *adapter, player->cb = cb; player->user_data = user_data; player->destroy = destroy; + player->id = ++id ? id : 1; server->players = g_slist_append(server->players, player); -- 1.7.9.5 -- 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