bluetooth: Fix missing state checks for a2dp_source
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Thu, 16 Aug 2012 11:08:29 +0000 (13:08 +0200)
committerJaska Uimonen <jaska.uimonen@intel.com>
Thu, 24 Jan 2013 07:29:35 +0000 (09:29 +0200)
commitc92f8bbfdc99c939870f2a24590152a67355048a
tree90d8308a8efe9b934556fcf41d098915809c0fa3
parentfcfab72c3d003cc210f55ebb4f64221b7a5375a8
bluetooth: Fix missing state checks for a2dp_source

Profile a2dp_source, just like any other card profile, should have
state guards when the profile is being changed. If the BlueZ interface
is not connected, the profile should be set to "off".
src/modules/bluetooth/module-bluetooth-device.c