Skip to content

Commit dbf8512

Browse files
author
James Dong
committed
Flush resets the count of played audio frames
Change-Id: I0cda94646a71757fa113a199d29235e13efd7ac3 related-to-bug: 5331470
1 parent 8f0bb4b commit dbf8512

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

media/libstagefright/AudioPlayer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,9 @@ status_t AudioPlayer::seekTo(int64_t time_us) {
508508
mReachedEOS = false;
509509
mSeekTimeUs = time_us;
510510

511+
// Flush resets the number of played frames
512+
mNumFramesPlayed = 0;
513+
511514
if (mAudioSink != NULL) {
512515
mAudioSink->flush();
513516
} else {

0 commit comments

Comments
 (0)