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

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

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

parents 21efaad1 15ce5f35
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -629,6 +629,10 @@ bool NuPlayer::Renderer::onDrainAudioQueue() {

            mAudioQueue.erase(mAudioQueue.begin());
            entry = NULL;
            // Need to stop the track here, because that will play out the last
            // little bit at the end of the file. Otherwise short files won't play.
            mAudioSink->stop();
            mNumFramesWritten = 0;
            return false;
        }