bluetooth: Support transport auto-release
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Fri, 10 May 2013 08:30:47 +0000 (10:30 +0200)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 3 Jun 2013 19:08:42 +0000 (00:38 +0530)
commit0e4c16e120f95b122c7139deb046192927d1b6c7
tree7a522367cf27585d9a8d14ae103334c5f6574219
parent9615def4b96f0bab365ddc03f6c003f382a54752
bluetooth: Support transport auto-release

With BlueZ 5, if the remote device suspends the audio, the transport
state will change to "idle" and the endpoint is not required to release
the transport, since this could introduce race conditions. Therefore,
ignore the call to pa_bluetooth_transport_release() if the transport is
not acquired any more.
src/modules/bluetooth/bluetooth-util.c