Merge "Use dupFromAidl() for sidebandStream" into udc-dev

This commit is contained in:
Treehugger Robot
2023-05-18 00:08:05 +00:00
committed by Android (Google) Code Review

View File

@@ -108,7 +108,7 @@ int JTvInputHal::addOrUpdateStream(int deviceId, int streamId, const sp<Surface>
status.getServiceSpecificError()); status.getServiceSpecificError());
return UNKNOWN_ERROR; return UNKNOWN_ERROR;
} }
connection.mSourceHandle = NativeHandle::create(makeFromAidl(sidebandStream), true); connection.mSourceHandle = NativeHandle::create(dupFromAidl(sidebandStream), true);
} }
connection.mSurface = surface; connection.mSurface = surface;
if (connection.mSurface != nullptr) { if (connection.mSurface != nullptr) {