]> code.delx.au - pulseaudio/commit
bluetooth: Do not check profile states is device_audio_is_ready()
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Fri, 11 Jan 2013 10:07:47 +0000 (11:07 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 11 Jan 2013 19:47:57 +0000 (21:47 +0200)
commit8eb3d14b137e47ae68a0d87e4d22295885ec367d
tree2fde910dfef8e7a8a11a029aafb981833aea5828
parent93e19c884b54cea4889d4e501ea1dce9b5c2b784
bluetooth: Do not check profile states is device_audio_is_ready()

The function is used to make sure some basic information has already
been gathered before the device is being used. At this point profile
states can be ignored, since their initial value will be
PA_BT_AUDIO_STATE_INVALID and thus effectively similar to
PA_BT_AUDIO_STATE_DISCONNECTED due to audio_state_to_transport_state().

The change should make no difference given that the behavior of
pa_bluetooth_device_any_audio_connected() doesn't change: by the time
TRUE is returned, a transport needs to exist. This means a profile
will exist in CONNECTING or CONNECTED state and thus the old
implementation of device_audio_is_ready() would also have returned TRUE.
src/modules/bluetooth/bluetooth-util.c