summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-08-15 22:25:21 +0200
committerLennart Poettering <lennart@poettering.net>2009-08-15 22:25:21 +0200
commitfa52a91b1a1d89e0a99faeea821d3e1a3597eb9a (patch)
treefe63ea6e568c36c58d3b8aae5c561f5eb3382ae8 /src
parent5c90cf2d6a148d5450b4d05edfc98d32ae83a854 (diff)
bluetooth: recognize only those BT devices that implement both the Audio and either AudioSink or Headset interfaces
Diffstat (limited to 'src')
-rw-r--r--src/modules/bluetooth/bluetooth-util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c
index 66e1c31e..d5806b96 100644
--- a/src/modules/bluetooth/bluetooth-util.c
+++ b/src/modules/bluetooth/bluetooth-util.c
@@ -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) {