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

Commit df54e93d authored by Jongchan Choi's avatar Jongchan Choi Committed by Wonsik Kim
Browse files

Reset staticInfo if static meta fetch fails

Invaild HDR metadata will be fed into encoder, if not reset.

Bug: 262503726
Test: presubmit
Change-Id: I33fba8a568cd195dfac0e438f8cae4a411bd04da
parent c66aa06b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1137,6 +1137,11 @@ c2_status_t GetHdrMetadataFromGralloc4Handle(
            err = C2_CORRUPTED;
        }
    }

    if (err != C2_OK) {
        staticInfo->reset();
    }

    if (dynamicInfo) {
        ALOGV("Grabbing dynamic HDR info from gralloc4 metadata");
        dynamicInfo->reset();