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

Commit 687272a3 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

bufferqueue: allow null stream in H2BGBP::setSidebandStream

Bug: 38172844
Change-Id: I585e1dc01f2e7f955c39046c1592bda7bea45a23
parent 007b00e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1141,7 +1141,7 @@ status_t H2BGraphicBufferProducer::disconnect(int api, DisconnectMode mode) {

status_t H2BGraphicBufferProducer::setSidebandStream(
        const sp<NativeHandle>& stream) {
    return toStatusT(mBase->setSidebandStream(stream->handle()));
    return toStatusT(mBase->setSidebandStream(stream == nullptr ? nullptr : stream->handle()));
}

void H2BGraphicBufferProducer::allocateBuffers(uint32_t width, uint32_t height,