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

Commit 5b9ba198 authored by cmlin0118's avatar cmlin0118
Browse files

Fix tunerhal vts feId uninitialized on getFrontendIdByType

Problem: FeId uninitialized on getFrontendIdByType
Solution: Initializ feId
Test: run vts -m VtsHalTvTunerV1_0TargetTest
Bug: 248472007
Change-Id: I373c49cf0a105869743be7f2c0737b4f5b30ae26
parent 155f20a6
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -418,7 +418,7 @@ AssertionResult FrontendTests::closeFrontend() {

void FrontendTests::getFrontendIdByType(FrontendType feType, uint32_t& feId) {
    ASSERT_TRUE(getFrontendIds());
    if (mFeIds.size() > 0) {
    feId = INVALID_ID;
    for (size_t i = 0; i < mFeIds.size(); i++) {
        ASSERT_TRUE(getFrontendInfo(mFeIds[i]));
        if (mFrontendInfo.type != feType) {
@@ -427,9 +427,6 @@ void FrontendTests::getFrontendIdByType(FrontendType feType, uint32_t& feId) {
        feId = mFeIds[i];
        return;
    }
    } else {
        feId = INVALID_ID;
    }
}

void FrontendTests::tuneTest(FrontendConfig frontendConf) {