mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
bluetooth: recognize only those BT devices that implement both the Audio and either AudioSink or Headset interfaces
This commit is contained in:
parent
5c90cf2d6a
commit
fa52a91b1a
1 changed files with 3 additions and 3 deletions
|
|
@ -122,9 +122,9 @@ static pa_bool_t device_is_audio(pa_bluetooth_device *d) {
|
|||
|
||||
return
|
||||
d->device_info_valid &&
|
||||
(d->audio_state != PA_BT_AUDIO_STATE_INVALID ||
|
||||
d->audio_sink_state != PA_BT_AUDIO_STATE_INVALID ||
|
||||
d->headset_state != PA_BT_AUDIO_STATE_INVALID);
|
||||
(d->audio_state != PA_BT_AUDIO_STATE_INVALID &&
|
||||
(d->audio_sink_state != PA_BT_AUDIO_STATE_INVALID ||
|
||||
d->headset_state != PA_BT_AUDIO_STATE_INVALID));
|
||||
}
|
||||
|
||||
static int parse_device_property(pa_bluetooth_discovery *y, pa_bluetooth_device *d, DBusMessageIter *i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue