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

Commit 606fbc10 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Workaround for busy wait bug

Underlying bug 25195759 is not yet fixed.

Bug: 24263351
Change-Id: I04b644246640054d38c8de79e0eb80fcbfef0e48
parent e710ae53
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1980,7 +1980,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;