]> code.delx.au - pulseaudio/commit
bluetooth: Set to off if transport removed
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Fri, 19 Oct 2012 08:11:26 +0000 (10:11 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 19 Oct 2012 15:31:01 +0000 (18:31 +0300)
commit9b9e53d144e35a227f994c65f7c2ed98800229df
treec6f45413044145bd83107c8ed0e4921f60d02438
parent6e5f78e0af1bf4aff4afe942f57c7d801a233366
bluetooth: Set to off if transport removed

The recently added hook can be used to detect that the transport being
used has been removed. In this case, the profile needs to be set to off.

Additionally, the change fixes a significant problem: without this
transition, the transport could be destroyed while the hook slots (i.e.
nrec_changed_slot) were still set. This led to a double free of these
objects in stop_thread().
src/modules/bluetooth/module-bluetooth-device.c