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

Commit 945957de authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am d0b1fac1: Merge "Make sure resume() and flush() are handled appropriately...

am d0b1fac1: Merge "Make sure resume() and flush() are handled appropriately even if the codec" into jb-mr2-dev

* commit 'd0b1fac1':
  Make sure resume() and flush() are handled appropriately even if the codec
parents 49a8b409 d0b1fac1
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -3461,6 +3461,22 @@ bool ACodec::IdleToExecutingState::onMessageReceived(const sp<AMessage> &msg) {
            return true;
        }

        case kWhatResume:
        {
            // We'll be active soon enough.
            return true;
        }

        case kWhatFlush:
        {
            // We haven't even started yet, so we're flushed alright...
            sp<AMessage> notify = mCodec->mNotify->dup();
            notify->setInt32("what", ACodec::kWhatFlushCompleted);
            notify->post();

            return true;
        }

        case kWhatSignalEndOfInputStream:
        {
            mCodec->onSignalEndOfInputStream();