Diff between 0aac6883b3a3a95d891e773b0958eb91aba01231 and fac78ca5dbbdfbb2e60e8daebc8e6b353fd6b00b
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/avrcp.c | +5 | -0 | modified |
Full Patch
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 9fe8f55..6378b7a 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;