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

Commit aa2e78da authored by Manisha Jajoo's avatar Manisha Jajoo Committed by Sungtak Lee
Browse files

Fix: Handle incomplete work

Test: VtsHidlC2V1_0TargetAudioEncTest -I software -C c2.android.opus.encoder -P /sdcard/res/
Bug: 80272610
Change-Id: I2a6476c2a205befa2447e94513e32b1a4ddad610
parent f39a648e
Loading
Loading
Loading
Loading
+18 −16
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ void workDone(
        component->config(configParam, C2_DONT_BLOCK, &failures);
        ASSERT_EQ(failures.size(), 0u);
    }
    if (work->worklets.front()->output.flags != C2FrameData::FLAG_INCOMPLETE) {
        framesReceived++;
        eos = (work->worklets.front()->output.flags &
               C2FrameData::FLAG_END_OF_STREAM) != 0;
@@ -126,3 +127,4 @@ void workDone(
            queueCondition.notify_all();
        }
    }
}
 No newline at end of file