commit | 6c375490a5536695770a85b57ec9f828d3c0c9d4 | [log] [tgz] |
---|---|---|
author | James Dong <jdong@google.com> | Tue Sep 27 22:47:25 2011 -0700 |
committer | James Dong <jdong@google.com> | Tue Sep 27 22:47:25 2011 -0700 |
tree | d6b54668915571bd2260ecbc3a05607dfdaab517 | |
parent | ac4d4d3698e920b9f5c648a781df5b6af8bcfdf0 [diff] |
Flush resets the count of played audio frames Change-Id: I0cda94646a71757fa113a199d29235e13efd7ac3 related-to-bug: 5331470
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 @@ mReachedEOS = false; mSeekTimeUs = time_us; + // Flush resets the number of played frames + mNumFramesPlayed = 0; + if (mAudioSink != NULL) { mAudioSink->flush(); } else {