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

Commit 7fe71f8b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "bufferqueue: allow null stream in H2BGBP::setSidebandStream" into oc-dev

parents 2eb4922a 687272a3
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,