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

Commit afeffa81 authored by Craig Donner's avatar Craig Donner
Browse files

Handle lock() returning a NULL buffer in SurfaceUtils.

Bug: 28526999
Change-Id: I99fdc100329e3350c9c8aa070779a407eda057ff
(cherry picked from commit 9193bcd6)
parent baf35fee
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -186,6 +186,10 @@ status_t pushBlankBuffersToNativeWindow(ANativeWindow *nativeWindow /* nonnull *
            break;
        }

        if (img == NULL) {
            ALOGE("error pushing blank frames: lock returned NULL buffer");
            break;
        }
        *img = 0;

        err = buf->unlock();