Declare ownership of native_handle_t object

Change-Id: I4e21ff8ea76cfafce943dc059c8f72b42397980e
This commit is contained in:
Wonsik Kim 2014-03-21 10:46:24 +09:00
parent 41d2f80739
commit 0ec54e156b
2 changed files with 2 additions and 2 deletions

View File

@ -392,7 +392,7 @@ public:
}
sp<NativeHandle> stream;
if (reply.readInt32()) {
stream = NativeHandle::create(reply.readNativeHandle());
stream = NativeHandle::create(reply.readNativeHandle(), true);
}
return stream;
}

View File

@ -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);