Loading media/codec2/sfplugin/CCodecBufferChannel.cpp +9 −2 Original line number Diff line number Diff line Loading @@ -2128,8 +2128,15 @@ bool CCodecBufferChannel::handleWork( if (notifyClient && !buffer && !flags) { if (mTunneled && drop && outputFormat) { if (mOutputFormat != outputFormat) { ALOGV("[%s] onWorkDone: Keep tunneled, drop frame with format change (%lld)", mName, work->input.ordinal.frameIndex.peekull()); mOutputFormat = outputFormat; } else { ALOGV("[%s] onWorkDone: Not reporting output buffer without format change (%lld)", mName, work->input.ordinal.frameIndex.peekull()); notifyClient = false; } } else { ALOGV("[%s] onWorkDone: Not reporting output buffer (%lld)", mName, work->input.ordinal.frameIndex.peekull()); Loading media/codec2/sfplugin/CCodecBufferChannel.h +1 −0 Original line number Diff line number Diff line Loading @@ -301,6 +301,7 @@ private: std::shared_ptr<C2BlockPool> mInputAllocator; QueueSync mQueueSync; std::vector<std::unique_ptr<C2Param>> mParamsToBeSet; sp<AMessage> mOutputFormat; struct Input { Input(); Loading Loading
media/codec2/sfplugin/CCodecBufferChannel.cpp +9 −2 Original line number Diff line number Diff line Loading @@ -2128,8 +2128,15 @@ bool CCodecBufferChannel::handleWork( if (notifyClient && !buffer && !flags) { if (mTunneled && drop && outputFormat) { if (mOutputFormat != outputFormat) { ALOGV("[%s] onWorkDone: Keep tunneled, drop frame with format change (%lld)", mName, work->input.ordinal.frameIndex.peekull()); mOutputFormat = outputFormat; } else { ALOGV("[%s] onWorkDone: Not reporting output buffer without format change (%lld)", mName, work->input.ordinal.frameIndex.peekull()); notifyClient = false; } } else { ALOGV("[%s] onWorkDone: Not reporting output buffer (%lld)", mName, work->input.ordinal.frameIndex.peekull()); Loading
media/codec2/sfplugin/CCodecBufferChannel.h +1 −0 Original line number Diff line number Diff line Loading @@ -301,6 +301,7 @@ private: std::shared_ptr<C2BlockPool> mInputAllocator; QueueSync mQueueSync; std::vector<std::unique_ptr<C2Param>> mParamsToBeSet; sp<AMessage> mOutputFormat; struct Input { Input(); Loading