From a865b26c5ffffb73215c09dd842c0742bd0dcd88 Mon Sep 17 00:00:00 2001 From: Yixiao Luo Date: Wed, 17 May 2023 15:25:55 -0700 Subject: [PATCH] Use dupFromAidl() for sidebandStream Bug: 282862884 Test: verified by RealTek, updating VTS Change-Id: Ia83748b7b0b08de16591c752f6661d665e0b015d --- services/core/jni/tvinput/JTvInputHal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/jni/tvinput/JTvInputHal.cpp b/services/core/jni/tvinput/JTvInputHal.cpp index 6782b5c8d7846..74fdabf950167 100644 --- a/services/core/jni/tvinput/JTvInputHal.cpp +++ b/services/core/jni/tvinput/JTvInputHal.cpp @@ -108,7 +108,7 @@ int JTvInputHal::addOrUpdateStream(int deviceId, int streamId, const sp 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) {