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

Commit a9651428 authored by Shalaj Jain's avatar Shalaj Jain Committed by Ricardo Cerqueira
Browse files

libstagefright: Handle error on allocate buffer failure

Set state to error on allocate buffer failure at start(init)
of decoding.

CRs-Fixed: 332373
(cherry picked from commit c7a957b7595fff44f9242ddcd3eeeabe827f9639)

Change-Id: If0796250c6385df28e3545c08e90e1626ff5e709
parent ae25055f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2025,6 +2025,10 @@ status_t OMXCodec::init() {

    err = allocateBuffers();
    if (err != (status_t)OK) {
#ifdef QCOM_HARDWARE
        CODEC_LOGE("Allocate Buffer failed - error = %d", err);
        setState(ERROR);
#endif
        return err;
    }