OSDN Git Service

transport: Fix inconsistent transport state
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Tue, 12 Feb 2013 08:23:35 +0000 (09:23 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 13 Feb 2013 14:28:35 +0000 (16:28 +0200)
commitdf1c61b817adcd816931d540ad7f7ac0d9020635
tree04b2cac861186d62513d3343181651ec3df1d05a
parent516bae4d53d5653fa45f1dd1ff68c680dfdc350d
transport: Fix inconsistent transport state

If a2dp_resume() fails, the transport state should not be modified. It
would otherwise enter an incosistent state where the transport will be
impossible to resume, since acquire() will see the transport in
TRANSPORT_STATE_REQUESTING state and will thus return
btd_error_not_authorized().
profiles/audio/transport.c