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

Commit 2f01c806 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Stop SoundPool on error instead of continuing

otherwise we might end up looping forever.

Change-Id: I86e33de5387e3acd148d9bba83d18224bb79fd95
parent f8def4d4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -589,6 +589,9 @@ static status_t decode(int fd, int64_t offset, int64_t length,
                    ALOGV("format changed to: %s", AMediaFormat_toString(format));
                } else if (status == AMEDIACODEC_INFO_TRY_AGAIN_LATER) {
                    ALOGV("no output buffer right now");
                } else if (status <= AMEDIA_ERROR_BASE) {
                    ALOGE("decode error: %d", status);
                    break;
                } else {
                    ALOGV("unexpected info code: %d", status);
                }