summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorUday Gupta <guptau@broadcom.com>2014-05-13 11:19:17 -0700
committerPierre Couillaud <pierre@broadcom.com>2014-05-13 16:18:16 -0700
commit56604aa3a56dc8e15532597a0a74b3c7b165e006 (patch)
tree274a2f2cdbc2d2b1b95a3f96bf9d8e91f2f8743a /services
parentf02f06c422a58ddaca49d14f21a196eaa435d07b (diff)
downloadframeworks_av-56604aa3a56dc8e15532597a0a74b3c7b165e006.zip
frameworks_av-56604aa3a56dc8e15532597a0a74b3c7b165e006.tar.gz
frameworks_av-56604aa3a56dc8e15532597a0a74b3c7b165e006.tar.bz2
Codec Offload: Add NULL check as mCallbackThread is NULL
when offloaded HAL is running BLOCKING mode b/14897952 Change-Id: I159a33e1181c1a62d80ab4bd3337a35dafaad884 Signed-off-by: Uday Gupta <guptau@broadcom.com> Signed-off-by: Pierre Couillaud <pierre@broadcom.com>
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 1da5147..69a1883 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -3951,7 +3951,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();
}