a2dp_source: skip stream endpoints that are reported as 'in use' during configuration

This commit is contained in:
Matthias Ringwald 2021-03-12 14:15:00 +01:00
parent cd0bbc03f2
commit ca0e2e7e9f

View File

@ -352,7 +352,7 @@ static void a2dp_source_packet_handler_internal(uint8_t packet_type, uint16_t ch
log_info("A2DP Found sep: remote seid 0x%02x, in_use %d, media type %d, sep type %s, index %d",
sep.seid, sep.in_use, sep.media_type, sep.type == AVDTP_SOURCE ? "source" : "sink",
num_remote_seps);
if (sep.type == AVDTP_SINK) {
if ((sep.type == AVDTP_SINK) && (sep.in_use == false)) {
remote_seps[num_remote_seps++] = sep;
}
}