summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commitdbf85120b8ca5e2bdc64f4085e9d6a036ac2ce5e (patch)
tree839ec4d723ef2a9656f22c6d3ba1804e8ab300f6
parent8f0bb4bc1715ad9aaa486d010ea870ec2f43d245 (diff)
Flush resets the count of played audio frames
Change-Id: I0cda94646a71757fa113a199d29235e13efd7ac3 related-to-bug: 5331470
-rw-r--r--media/libstagefright/AudioPlayer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/AudioPlayer.cpp b/media/libstagefright/AudioPlayer.cpp
index ba076f57bf0e..2581a62eca44 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 {