commit | 687272a3bda8e189d2ba651f41da3a8ee3f659f7 | [log] [tgz] |
---|---|---|
author | Lajos Molnar <lajos@google.com> | Tue May 09 13:52:30 2017 -0700 |
committer | Lajos Molnar <lajos@google.com> | Tue May 09 13:53:31 2017 -0700 |
tree | c09f66c0c355e72b61c41a926ce97558279b6225 | |
parent | 007b00e775b92025d539eac69b93b7eb91164db1 [diff] [blame] |
bufferqueue: allow null stream in H2BGBP::setSidebandStream Bug: 38172844 Change-Id: I585e1dc01f2e7f955c39046c1592bda7bea45a23
diff --git a/libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp b/libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp index eafd296..fda5b94 100644 --- a/libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp +++ b/libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp
@@ -1141,7 +1141,7 @@ 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,