diff options
| author | 2011-09-27 22:47:25 -0700 | |
|---|---|---|
| committer | 2011-09-27 22:47:25 -0700 | |
| commit | dbf85120b8ca5e2bdc64f4085e9d6a036ac2ce5e (patch) | |
| tree | 839ec4d723ef2a9656f22c6d3ba1804e8ab300f6 | |
| parent | 8f0bb4bc1715ad9aaa486d010ea870ec2f43d245 (diff) | |
Flush resets the count of played audio frames
Change-Id: I0cda94646a71757fa113a199d29235e13efd7ac3
related-to-bug: 5331470
| -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 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 { |