diff options
author | Lajos Molnar <lajos@google.com> | 2013-10-28 15:01:15 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2013-10-28 16:53:13 -0700 |
commit | f4909f67d8be28e3b0a5e9429479b102773b2ea8 (patch) | |
tree | 8aefc8fc0eaea4f17e82156d63dd932d62cfd204 | |
parent | f3a6234ba21640cf2bc893dbcb98fb9b0fa47481 (diff) | |
download | frameworks_av-f4909f67d8be28e3b0a5e9429479b102773b2ea8.zip frameworks_av-f4909f67d8be28e3b0a5e9429479b102773b2ea8.tar.gz frameworks_av-f4909f67d8be28e3b0a5e9429479b102773b2ea8.tar.bz2 |
AwesomePlayer: ensure STARTED message works after reset
Change-Id: I06217c07c0b68476cb296fd6151f6a0d8d4e02d0
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 11412881
-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(); |