Declare ownership of native_handle_t object
Change-Id: I4e21ff8ea76cfafce943dc059c8f72b42397980e
This commit is contained in:
parent
41d2f80739
commit
0ec54e156b
@ -392,7 +392,7 @@ public:
|
||||
}
|
||||
sp<NativeHandle> stream;
|
||||
if (reply.readInt32()) {
|
||||
stream = NativeHandle::create(reply.readNativeHandle());
|
||||
stream = NativeHandle::create(reply.readNativeHandle(), true);
|
||||
}
|
||||
return stream;
|
||||
}
|
||||
|
@ -329,7 +329,7 @@ status_t BnGraphicBufferProducer::onTransact(
|
||||
CHECK_INTERFACE(IGraphicBufferProducer, data, reply);
|
||||
sp<NativeHandle> stream;
|
||||
if (data.readInt32()) {
|
||||
stream = NativeHandle::create(data.readNativeHandle());
|
||||
stream = NativeHandle::create(data.readNativeHandle(), true);
|
||||
}
|
||||
status_t result = setSidebandStream(stream);
|
||||
reply->writeInt32(result);
|
||||
|
Loading…
Reference in New Issue
Block a user