Commit cbc09c9f authored by pali's avatar pali

fixup! bluetooth: Change codec API for choosing remote endpoint

parent a17c2983
......@@ -323,11 +323,7 @@ static int cmp_endpoints(const uint8_t *capabilities1_buffer, uint8_t capabiliti
return 1;
/* Last preference is by frequency */
cmp = cmp_endpoints_by_freq(capabilities1, capabilities2, default_sample_spec, for_encoding);
if (cmp != 0)
return cmp;
return 0;
return cmp_endpoints_by_freq(capabilities1, capabilities2, default_sample_spec, for_encoding);
}
static int cmp_endpoints_fixed_bitpool(const uint8_t *capabilities1_buffer, uint8_t capabilities1_size, const uint8_t *capabilities2_buffer, uint8_t capabilities2_size, const pa_sample_spec *default_sample_spec, bool 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