Message ID | 20250124110331.1003810-1-frederic.danis@collabora.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ] avrcp: Fix crash on remote player changed | expand |
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 9fe8f55e5..6378b7a6e 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -2661,6 +2661,11 @@ static gboolean avrcp_list_items_rsp(struct avctp *conn, uint8_t *operands, size_t i; int err = 0; + if (player->p == NULL) { + media_player_list_complete(player->user_data, NULL, -EINVAL); + return FALSE; + } + if (pdu == NULL) { err = -ETIMEDOUT; goto done;