Merge "Sometimes no audio output after playing some clips using Files.apk" am: 80a288ad82
am: 68e6412024
Change-Id: I5e08efe9101e8581156310d0051ee76d645679be
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 06ba8b0..b5592e3 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -5735,7 +5735,7 @@
int64_t framesWritten = mBytesWritten / mFrameSize;
if (mStandby || !last ||
track->presentationComplete(framesWritten, audioHALFrames) ||
- track->isPaused()) {
+ track->isPaused() || mHwPaused) {
if (track->isStopping_2()) {
track->mState = TrackBase::STOPPED;
}