summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profiles/audio/avrcp.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 68cc67753..0c3a761b2 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -3883,12 +3883,11 @@ static void controller_init(struct avrcp *session)
btd_service_connecting_complete(service, 0);
/* Only create player if category 1 is supported */
- if (!(controller->features & AVRCP_FEATURE_CATEGORY_1))
- return;
-
- player = create_ct_player(session, 0);
- if (player == NULL)
- return;
+ if (controller->features & AVRCP_FEATURE_CATEGORY_1) {
+ player = create_ct_player(session, 0);
+ if (player == NULL)
+ return;
+ }
if (controller->version < 0x0103)
return;