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

Commit 140359b7 authored by Glenn Kasten's avatar Glenn Kasten Committed by Gerrit Code Review
Browse files

Merge "Workaround for busy wait bug"

parents 80b99139 848c17b5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1976,7 +1976,8 @@ nsecs_t AudioTrack::processAudioBuffer()
        if (err != NO_ERROR) {
            if (err == TIMED_OUT || err == WOULD_BLOCK || err == -EINTR ||
                    (isOffloaded() && (err == DEAD_OBJECT))) {
                return 0;
                // FIXME bug 25195759
                return 1000000;
            }
            ALOGE("Error %d obtaining an audio buffer, giving up.", err);
            return NS_NEVER;