Skip to content

Commit 5e28463

Browse files
James DongAndroid (Google) Code Review
authored andcommitted
Merge "Flush resets the count of played audio frames"
2 parents 781ae92 + dbf8512 commit 5e28463

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)