Fix NativeHandle return in TV Input HAL 2.0 default implementation

Bug: 227673740
Test: atest VtsHalTvInputTargetTest
Change-Id: I0b18b77c5f3a0b99a1e705ef61d6691f8d33a561
This commit is contained in:
Yixiao Luo 2022-10-18 16:40:14 -07:00
parent 36117a1587
commit e1a730577c

View file

@ -96,8 +96,7 @@ void TvInput::init() {
}
mStreamConfigs[in_deviceId][in_streamId]->handle = createNativeHandle(in_streamId);
mStreamConfigs[in_deviceId][in_streamId]->isOpen = true;
NativeHandle aidlHandle = makeToAidl(mStreamConfigs[in_deviceId][in_streamId]->handle);
_aidl_return = &aidlHandle;
*_aidl_return = makeToAidl(mStreamConfigs[in_deviceId][in_streamId]->handle);
return ::ndk::ScopedAStatus::ok();
}