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

Commit 524b0580 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

CCodec: don't update pipeline watcher if using input surface

Bug: 127911646
Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small
Change-Id: I0b562e518bc7991a6483fcbde8bfbc9f4774881d
parent 64a388ab
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -2593,9 +2593,9 @@ bool CCodecBufferChannel::handleWork(
        return false;
        return false;
    }
    }


    if (work->worklets.size() != 1u
    if (mInputSurface == nullptr && (work->worklets.size() != 1u
            || !work->worklets.front()
            || !work->worklets.front()
            || !(work->worklets.front()->output.flags & C2FrameData::FLAG_INCOMPLETE)) {
            || !(work->worklets.front()->output.flags & C2FrameData::FLAG_INCOMPLETE))) {
        mPipelineWatcher.lock()->onWorkDone(work->input.ordinal.frameIndex.peeku());
        mPipelineWatcher.lock()->onWorkDone(work->input.ordinal.frameIndex.peeku());
    }
    }