Loading media/codec2/sfplugin/CCodecBufferChannel.cpp +6 −4 Original line number Diff line number Diff line Loading @@ -533,10 +533,12 @@ status_t CCodecBufferChannel::renderOutputBuffer( feedInputBufferIfAvailable(); if (!c2Buffer) { if (released) { ALOGD("[%s] The app is calling releaseOutputBuffer() with " std::call_once(mRenderWarningFlag, [this] { ALOGW("[%s] The app is calling releaseOutputBuffer() with " "timestamp or render=true with non-video buffers. Apps should " "call releaseOutputBuffer() with render=false for those.", mName); }); } return INVALID_OPERATION; } Loading media/codec2/sfplugin/CCodecBufferChannel.h +1 −0 Original line number Diff line number Diff line Loading @@ -305,6 +305,7 @@ private: Mutexed<ReorderStash> mReorderStash; std::atomic_bool mInputMetEos; std::once_flag mRenderWarningFlag; inline bool hasCryptoOrDescrambler() { return mCrypto != nullptr || mDescrambler != nullptr; Loading Loading
media/codec2/sfplugin/CCodecBufferChannel.cpp +6 −4 Original line number Diff line number Diff line Loading @@ -533,10 +533,12 @@ status_t CCodecBufferChannel::renderOutputBuffer( feedInputBufferIfAvailable(); if (!c2Buffer) { if (released) { ALOGD("[%s] The app is calling releaseOutputBuffer() with " std::call_once(mRenderWarningFlag, [this] { ALOGW("[%s] The app is calling releaseOutputBuffer() with " "timestamp or render=true with non-video buffers. Apps should " "call releaseOutputBuffer() with render=false for those.", mName); }); } return INVALID_OPERATION; } Loading
media/codec2/sfplugin/CCodecBufferChannel.h +1 −0 Original line number Diff line number Diff line Loading @@ -305,6 +305,7 @@ private: Mutexed<ReorderStash> mReorderStash; std::atomic_bool mInputMetEos; std::once_flag mRenderWarningFlag; inline bool hasCryptoOrDescrambler() { return mCrypto != nullptr || mDescrambler != nullptr; Loading