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

Commit c09e47c2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Reset staticInfo if static meta fetch fails"

parents 0f6f28be bd2ced7f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1175,6 +1175,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();