summaryrefslogtreecommitdiff
path: root/profiles/audio/avrcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/audio/avrcp.c')
-rw-r--r--profiles/audio/avrcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 76e89afe7..fa95bf9f2 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -3942,9 +3942,10 @@ void avrcp_unregister_player(struct avrcp_player *player)
target->player = g_slist_nth_data(server->players, 0);
}
- player_destroy(player);
avrcp_player_event(player,
AVRCP_EVENT_AVAILABLE_PLAYERS_CHANGED, NULL);
+
+ player_destroy(player);
}
static gboolean avrcp_handle_set_volume(struct avctp *conn,