Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c375490 authored by James Dong's avatar James Dong
Browse files

Flush resets the count of played audio frames

Change-Id: I0cda94646a71757fa113a199d29235e13efd7ac3
related-to-bug: 5331470
parent ac4d4d36
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 {