mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +00:00
avrcp: guarantee the existence of browsing connection associated with AVRCP connection
This commit is contained in:
parent
a1d703afb2
commit
c3f996e681
@ -497,6 +497,7 @@ avrcp_connection_t * avrcp_get_connection_for_browsing_cid_for_role(avrcp_role_t
|
||||
while (btstack_linked_list_iterator_has_next(&it)){
|
||||
avrcp_connection_t * connection = (avrcp_connection_t *)btstack_linked_list_iterator_next(&it);
|
||||
if (connection->role != role) continue;
|
||||
if (connection->browsing_connection == NULL) continue;
|
||||
if (connection->avrcp_browsing_cid != browsing_cid) continue;
|
||||
return connection;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user