Use dupFromAidl() for sidebandStream

Bug: 282862884
Test: verified by RealTek, updating VTS
Change-Id: Ia83748b7b0b08de16591c752f6661d665e0b015d
This commit is contained in:
Yixiao Luo
2023-05-17 15:25:55 -07:00
parent 7a91a429c2
commit a865b26c5f

View File

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