bluez5: make set transport volume calls async

The transport set volume call may take a long time or never complete, so
make them async to not block main loop.

Also reduce log level to info for the failed volume setting, as this is
something the user can do nothing about.
This commit is contained in:
Pauli Virtanen 2023-04-30 18:39:31 +03:00
parent 9c788d0c7e
commit 04951ac15f
2 changed files with 59 additions and 16 deletions

View file

@ -638,6 +638,7 @@ struct spa_bt_transport {
struct spa_source volume_timer;
struct spa_source release_timer;
DBusPendingCall *acquire_call;
DBusPendingCall *volume_call;
struct spa_hook_list listener_list;
struct spa_callbacks impl;