diff options
author | Lajos Molnar <lajos@google.com> | 2013-10-30 13:26:53 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-30 13:26:53 -0700 |
commit | 8578eb364799f83c6f237d286e1447c02db6afbc (patch) | |
tree | 1b69836d45b38e9282fa7bb48761335f73b02177 | |
parent | b6b97f6071a3948494b5e9cb1a9c175157bdaf07 (diff) | |
parent | c76b9f52cf4e39f6943c53f5b3657dfee65857ac (diff) | |
download | frameworks_av-8578eb364799f83c6f237d286e1447c02db6afbc.zip frameworks_av-8578eb364799f83c6f237d286e1447c02db6afbc.tar.gz frameworks_av-8578eb364799f83c6f237d286e1447c02db6afbc.tar.bz2 |
am c76b9f52: Merge "AwesomePlayer: ensure STARTED message works after reset" into klp-dev
* commit 'c76b9f52cf4e39f6943c53f5b3657dfee65857ac':
AwesomePlayer: ensure STARTED message works after reset
-rw-r--r-- | media/libstagefright/AwesomePlayer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp index 52bd896..e1f6563 100644 --- a/media/libstagefright/AwesomePlayer.cpp +++ b/media/libstagefright/AwesomePlayer.cpp @@ -606,6 +606,9 @@ void AwesomePlayer::reset_l() { mWatchForAudioSeekComplete = false; mWatchForAudioEOS = false; + + mMediaRenderingStartGeneration = 0; + mStartGeneration = 0; } void AwesomePlayer::notifyListener_l(int msg, int ext1, int ext2) { @@ -895,6 +898,8 @@ status_t AwesomePlayer::play_l() { return OK; } + mMediaRenderingStartGeneration = ++mStartGeneration; + if (!(mFlags & PREPARED)) { status_t err = prepare_l(); |