diff options
author | James Dong <jdong@google.com> | 2011-09-27 22:47:25 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-09-27 22:47:25 -0700 |
commit | dbf85120b8ca5e2bdc64f4085e9d6a036ac2ce5e (patch) | |
tree | 839ec4d723ef2a9656f22c6d3ba1804e8ab300f6 /media | |
parent | 8f0bb4bc1715ad9aaa486d010ea870ec2f43d245 (diff) | |
download | frameworks_base-dbf85120b8ca5e2bdc64f4085e9d6a036ac2ce5e.zip frameworks_base-dbf85120b8ca5e2bdc64f4085e9d6a036ac2ce5e.tar.gz frameworks_base-dbf85120b8ca5e2bdc64f4085e9d6a036ac2ce5e.tar.bz2 |
Flush resets the count of played audio frames
Change-Id: I0cda94646a71757fa113a199d29235e13efd7ac3
related-to-bug: 5331470
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/AudioPlayer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/AudioPlayer.cpp b/media/libstagefright/AudioPlayer.cpp index ba076f5..2581a62 100644 --- a/media/libstagefright/AudioPlayer.cpp +++ b/media/libstagefright/AudioPlayer.cpp @@ -508,6 +508,9 @@ status_t AudioPlayer::seekTo(int64_t time_us) { mReachedEOS = false; mSeekTimeUs = time_us; + // Flush resets the number of played frames + mNumFramesPlayed = 0; + if (mAudioSink != NULL) { mAudioSink->flush(); } else { |