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

Commit 9193bcd6 authored by Craig Donner's avatar Craig Donner
Browse files

Handle lock() returning a NULL buffer in SurfaceUtils.

Bug: 28526999
Change-Id: I99fdc100329e3350c9c8aa070779a407eda057ff
parent e35bcaa2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -168,6 +168,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();