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

Commit ce2c97dc authored by Sungtak Lee's avatar Sungtak Lee Committed by Android (Google) Code Review
Browse files

Merge "Fix: Handle incomplete work"

parents 0e2c6b80 aa2e78da
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