bluez5: fix bug in endpoint sort function

This commit is contained in:
Pauli Virtanen 2021-02-03 22:47:29 +02:00
parent 4c46495c38
commit fdbcaeb20f

View file

@ -1698,7 +1698,7 @@ static int a2dp_codec_switch_cmp(const void *a, const void *b)
{ {
struct spa_bt_a2dp_codec_switch *sw = a2dp_codec_switch_cmp_sw; struct spa_bt_a2dp_codec_switch *sw = a2dp_codec_switch_cmp_sw;
const struct a2dp_codec *codec = *sw->codec_iter; const struct a2dp_codec *codec = *sw->codec_iter;
const char *path1 = a, *path2 = b; const char *path1 = *(char **)a, *path2 = *(char **)b;
struct spa_bt_remote_endpoint *ep1, *ep2; struct spa_bt_remote_endpoint *ep1, *ep2;
ep1 = device_remote_endpoint_find(sw->device, path1); ep1 = device_remote_endpoint_find(sw->device, path1);