Commit 0a375e52 authored by pali's avatar pali Committed by Marijn Suijten

fixup! bluetooth: Change codec API for choosing remote endpoint

parent 92f39a96
......@@ -264,8 +264,8 @@ static int cmp_endpoints(const uint8_t *capabilities1_buffer, uint8_t capabiliti
uint8_t unusable1_range, unusable2_range;
int cmp;
pa_assert(capabilities1_size == sizeof(a2dp_sbc_t));
pa_assert(capabilities2_size == sizeof(a2dp_sbc_t));
pa_assert(capabilities1_size == sizeof(*capabilities1));
pa_assert(capabilities2_size == sizeof(*capabilities2));
/* For mono outputs prefer endpoint with mono capability and for other outputs prefer non-mono capabilities */
cmp = cmp_endpoints_by_channels(capabilities1, capabilities2, default_sample_spec, for_encoding);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment