summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-05-19 15:28:51 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-19 15:28:51 +0000
commit4c9bde7a3e636d3ecccd7905d142dbbb80e977a0 (patch)
tree459c7793a25bb047415e25dea6e6fd87c103a8de /services
parent1b8b8793c0e86865df456c3d26f969b1498041db (diff)
parentce473c32705e2d1c5fcc817198101e1220b3c8f7 (diff)
downloadframeworks_av-4c9bde7a3e636d3ecccd7905d142dbbb80e977a0.zip
frameworks_av-4c9bde7a3e636d3ecccd7905d142dbbb80e977a0.tar.gz
frameworks_av-4c9bde7a3e636d3ecccd7905d142dbbb80e977a0.tar.bz2
am ce473c32: Merge "Codec Offload: Add NULL check as mCallbackThread is NULL when offloaded HAL is running BLOCKING mode"
* commit 'ce473c32705e2d1c5fcc817198101e1220b3c8f7': Codec Offload: Add NULL check as mCallbackThread is NULL when offloaded HAL is running BLOCKING mode
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/Threads.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index cac785a..0f2a445 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -3952,7 +3952,10 @@ void AudioFlinger::OffloadThread::threadLoop_exit()
mMixerStatus = MIXER_DRAIN_ALL;
threadLoop_drain();
}
- mCallbackThread->exit();
+ if (mUseAsyncWrite) {
+ ALOG_ASSERT(mCallbackThread != 0);
+ mCallbackThread->exit();
+ }
PlaybackThread::threadLoop_exit();
}