Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a865b26c authored by Yixiao Luo's avatar Yixiao Luo
Browse files

Use dupFromAidl() for sidebandStream

Bug: 282862884
Test: verified by RealTek, updating VTS
Change-Id: Ia83748b7b0b08de16591c752f6661d665e0b015d
parent 7a91a429
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {