diff options
author | Glenn Kasten <gkasten@google.com> | 2012-11-15 14:13:16 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-11-16 13:31:11 -0800 |
commit | d983364b3655a547b55bb11dbe148103198c011d (patch) | |
tree | 9e905341f1e393e05eb76b601a21f79467a39c71 | |
parent | f0937247b6d92b7d9457c64e36fe4c10927685ac (diff) | |
download | frameworks_av-d983364b3655a547b55bb11dbe148103198c011d.zip frameworks_av-d983364b3655a547b55bb11dbe148103198c011d.tar.gz frameworks_av-d983364b3655a547b55bb11dbe148103198c011d.tar.bz2 |
Static AudioTrack plays twice initially
Bug: 7528721
Change-Id: I10bc16a26f33dba6572b730a170cb3bf00e68e30
-rw-r--r-- | services/audioflinger/AudioFlinger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index 76d6447..1913b6f 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -4681,7 +4681,7 @@ void AudioFlinger::PlaybackThread::Track::flush() if (thread != 0) { Mutex::Autolock _l(thread->mLock); if (mState != STOPPING_1 && mState != STOPPING_2 && mState != STOPPED && mState != PAUSED && - mState != PAUSING) { + mState != PAUSING && mState != IDLE && mState != FLUSHED) { return; } // No point remaining in PAUSED state after a flush => go to |