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

Commit 598c1442 authored by Pawin Vongmasa's avatar Pawin Vongmasa
Browse files

ACodec.cpp: Removed a null pointer dereference triggered in an

ALOGV statement.

Note: mGraphicBuffer is expected to be NULL on the modified
line.

Bug: 27977709
Change-Id: I26c502ee1d0fb47e06cce1c042fb55de11c92b89
parent 7f688edc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -721,7 +721,7 @@ status_t ACodec::handleSetSurface(const sp<Surface> &surface) {
        if (storingMetadataInDecodedBuffers()
                && !mLegacyAdaptiveExperiment
                && info.mStatus == BufferInfo::OWNED_BY_NATIVE_WINDOW) {
            ALOGV("skipping buffer %p", info.mGraphicBuffer->getNativeBuffer());
            ALOGV("skipping buffer");
            continue;
        }
        ALOGV("attaching buffer %p", info.mGraphicBuffer->getNativeBuffer());