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

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

Merge "Add null check in setSidebandStream" into oc-dev

parents b81da0bd 5c7ade85
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -248,7 +248,7 @@ Return<int32_t> TWGraphicBufferProducer::disconnect(

Return<int32_t> TWGraphicBufferProducer::setSidebandStream(const hidl_handle& stream) {
    return static_cast<int32_t>(mBase->setSidebandStream(NativeHandle::create(
            native_handle_clone(stream), true)));
            stream ? native_handle_clone(stream) : NULL, true)));
}

Return<void> TWGraphicBufferProducer::allocateBuffers(