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

Commit 12387678 authored by Mingming Yin's avatar Mingming Yin Committed by Steve Kondik
Browse files

Indicate client process during streaming rebuffering

Change-Id: I199eb3bbbe398ef442dd03290c89592efb39dae4
 - Audio was not playing after buffering done during streaming
   of audio-video playback
 - Changed to indicate to client process that the track was disabled
   because of underrun.
 - It will then automatically call start() when data is available
CRs-Fixed: 491525
parent bdfd48df
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3318,6 +3318,9 @@ AudioFlinger::PlaybackThread::mixer_state AudioFlinger::DirectOutputThread::prep
                if (--(track->mRetryCount) <= 0) {
                    ALOGV("BUFFER TIMEOUT: remove(%d) from active list", track->name());
                    tracksToRemove->add(track);
                    // indicate to client process that the track was disabled because of underrun
                    // it will then automatically call start() when data is available
                    android_atomic_or(CBLK_DISABLED, &cblk->flags);
                } else if (i == (count -1)){
                    mixerStatus = MIXER_TRACKS_ENABLED;
                }