Loading media/codec2/sfplugin/CCodecBufferChannel.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -1519,6 +1519,11 @@ void CCodecBufferChannel::ReorderStash::clear() { mKey = C2Config::ORDINAL; } void CCodecBufferChannel::ReorderStash::flush() { mPending.clear(); mStash.clear(); } void CCodecBufferChannel::ReorderStash::setDepth(uint32_t depth) { mPending.splice(mPending.end(), mStash); mDepth = depth; Loading Loading @@ -2526,6 +2531,7 @@ void CCodecBufferChannel::flush(const std::list<std::unique_ptr<C2Work>> &flushe Mutexed<std::unique_ptr<OutputBuffers>>::Locked buffers(mOutputBuffers); (*buffers)->flush(flushedWork); } mReorderStash.lock()->flush(); } void CCodecBufferChannel::onWorkDone( Loading media/codec2/sfplugin/CCodecBufferChannel.h +1 −0 Original line number Diff line number Diff line Loading @@ -359,6 +359,7 @@ private: ReorderStash(); void clear(); void flush(); void setDepth(uint32_t depth); void setKey(C2Config::ordinal_key_t key); bool pop(Entry *entry); Loading Loading
media/codec2/sfplugin/CCodecBufferChannel.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -1519,6 +1519,11 @@ void CCodecBufferChannel::ReorderStash::clear() { mKey = C2Config::ORDINAL; } void CCodecBufferChannel::ReorderStash::flush() { mPending.clear(); mStash.clear(); } void CCodecBufferChannel::ReorderStash::setDepth(uint32_t depth) { mPending.splice(mPending.end(), mStash); mDepth = depth; Loading Loading @@ -2526,6 +2531,7 @@ void CCodecBufferChannel::flush(const std::list<std::unique_ptr<C2Work>> &flushe Mutexed<std::unique_ptr<OutputBuffers>>::Locked buffers(mOutputBuffers); (*buffers)->flush(flushedWork); } mReorderStash.lock()->flush(); } void CCodecBufferChannel::onWorkDone( Loading
media/codec2/sfplugin/CCodecBufferChannel.h +1 −0 Original line number Diff line number Diff line Loading @@ -359,6 +359,7 @@ private: ReorderStash(); void clear(); void flush(); void setDepth(uint32_t depth); void setKey(C2Config::ordinal_key_t key); bool pop(Entry *entry); Loading