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

Commit 184af96c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Release buffers on MediaCodec#stop()" into rvc-dev am: 987087c3 am: 0dca30c6

Change-Id: Ib974cbdf437a6ecc3e7e8d6ac2c7b436296ad301
parents 6267b35f 0dca30c6
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1406,6 +1406,9 @@ void CCodec::stop() {
        // TODO: convert err into status_t
        // TODO: convert err into status_t
        mCallback->onError(UNKNOWN_ERROR, ACTION_CODE_FATAL);
        mCallback->onError(UNKNOWN_ERROR, ACTION_CODE_FATAL);
    }
    }
    // Assure buffers are not owned when stop() was called without flush().
    std::list<std::unique_ptr<C2Work>> flushedWork;
    mChannel->flush(flushedWork);


    {
    {
        Mutexed<std::unique_ptr<Config>>::Locked configLocked(mConfig);
        Mutexed<std::unique_ptr<Config>>::Locked configLocked(mConfig);