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

Commit b1fbfdb2 authored by ted.sun's avatar ted.sun Committed by Henry Fang
Browse files

CCodec: add support for onFrameRendered for tunneled playback.

Bug: 151997287
Change-Id: I3c09ec2149f2eea1a92a87271049798f6379b3ac
parent 6a0e6461
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1712,6 +1712,17 @@ bool CCodecBufferChannel::handleWork(
                }
                break;
            }
            case C2PortTunnelSystemTime::CORE_INDEX: {
                C2PortTunnelSystemTime::output frameRenderTime;
                if (frameRenderTime.updateFrom(*param)) {
                    ALOGV("[%s] onWorkDone: frame rendered (sys:%lld ns, media:%lld us)",
                          mName, (long long)frameRenderTime.value,
                          (long long)worklet->output.ordinal.timestamp.peekll());
                    mCCodecCallback->onOutputFramesRendered(
                            worklet->output.ordinal.timestamp.peek(), frameRenderTime.value);
                }
                break;
            }
            default:
                ALOGV("[%s] onWorkDone: unrecognized config update (%08X)",
                      mName, param->index());