diff options
author | Andreas Huber <andih@google.com> | 2013-03-28 18:21:11 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-03-28 18:21:11 +0000 |
commit | 63519f7f74e15f88450263e6f752cc76d094add7 (patch) | |
tree | ddcb710c06074f2b44b86d6686c5e26a27e1f7cc /media | |
parent | 20ffad4da71550cf0cacbb26679990258f1561e2 (diff) | |
parent | 5e691cd3aed18b79cc7362b6689f67886ce90e56 (diff) | |
download | frameworks_av-63519f7f74e15f88450263e6f752cc76d094add7.zip frameworks_av-63519f7f74e15f88450263e6f752cc76d094add7.tar.gz frameworks_av-63519f7f74e15f88450263e6f752cc76d094add7.tar.bz2 |
Merge "Make sure resume() and flush() are handled appropriately even if the codec" into jb-mr2-dev
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/ACodec.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp index 1a2eeb1..c9f8741 100644 --- a/media/libstagefright/ACodec.cpp +++ b/media/libstagefright/ACodec.cpp @@ -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(); |