Diff between cac6a5806bff05e70bcecdee700303662c13e3ee and 49cf7c2f63f7b5824c04746447d5ee8a454f74de

Changed Files

File Additions Deletions Status
profiles/audio/avrcp.c +2 -0 modified

Full Patch

diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index c546283..86939e4 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -1229,6 +1229,8 @@ static uint8_t player_get_status(struct avrcp_player *player)
 		return AVRCP_PLAY_STATUS_STOPPED;
 
 	value = player->cb->get_status(player->user_data);
+	if (value == NULL)
+		return AVRCP_PLAY_STATUS_STOPPED;
 
 	return play_status_to_val(value);
 }