diff options
author | Nick Pelly <> | 2009-04-01 16:40:01 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-01 16:40:01 -0700 |
commit | cb5883ecc50adf888a95d5c4f601b0dc1c1ec6ce (patch) | |
tree | 4499cb4898906452e116da17cd9cb45c0ca509da /libs/audioflinger/A2dpAudioInterface.h | |
parent | 3c52588ca99742ad9c651b08b4def40bfd5b6aac (diff) | |
download | frameworks_native-cb5883ecc50adf888a95d5c4f601b0dc1c1ec6ce.zip frameworks_native-cb5883ecc50adf888a95d5c4f601b0dc1c1ec6ce.tar.gz frameworks_native-cb5883ecc50adf888a95d5c4f601b0dc1c1ec6ce.tar.bz2 |
AI 144150: Fix heap corruption.
Take mutex in close(), and skip write path after turning bluetooth off.
BUG=1751710
Automated import of CL 144150
Diffstat (limited to 'libs/audioflinger/A2dpAudioInterface.h')
-rw-r--r-- | libs/audioflinger/A2dpAudioInterface.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/audioflinger/A2dpAudioInterface.h b/libs/audioflinger/A2dpAudioInterface.h index 99614dc..7901a8c 100644 --- a/libs/audioflinger/A2dpAudioInterface.h +++ b/libs/audioflinger/A2dpAudioInterface.h @@ -88,7 +88,9 @@ private: friend class A2dpAudioInterface; status_t init(); status_t close(); - status_t setAddress(const char* address); + status_t close_l(); + status_t setAddress(const char* address); + status_t setBluetoothEnabled(bool enabled); private: int mFd; @@ -98,6 +100,7 @@ private: char mA2dpAddress[20]; void* mData; Mutex mLock; + bool mBluetoothEnabled; }; A2dpAudioStreamOut* mOutput; |