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

Commit 538596f7 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android (Google) Code Review
Browse files

Merge "Fix looping sound playback" into lmp-mr1-dev

parents 745602d8 368e3370
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -628,6 +628,11 @@ void NuPlayerDriver::notifyListener_l(
                if (mLooping || (mAutoLoop
                        && (mAudioSink == NULL || mAudioSink->realtime()))) {
                    mPlayer->seekToAsync(0);
                    if (mAudioSink != NULL) {
                        // The renderer has stopped the sink at the end in order to play out
                        // the last little bit of audio. If we're looping, we need to restart it.
                        mAudioSink->start();
                    }
                    break;
                }