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

Commit 9321f867 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "libstagefirght: Fix for data loss in A2DP playback with repeat mode" into ics

parents 1e757b87 3e887699
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -776,6 +776,13 @@ void LPAPlayer::decoderThreadEntry() {
        //Queue up the buffers for writing either for A2DP or LPA Driver
        else {
            struct msm_audio_aio_buf aio_buf_local;
            if(bIsA2DPEnabled && isPaused){
                pthread_mutex_lock(&mem_response_mutex);
                buf.bytesToWrite = 0;
                memBuffersResponseQueue.push_back(buf);
                pthread_mutex_unlock(&mem_response_mutex);
                continue;
            }
            int numOfBytes = 0;

            if (bIsA2DPEnabled)