diff options
author | Marco Nelissen <marcone@google.com> | 2013-04-04 23:18:05 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-04-04 23:18:05 +0000 |
commit | f8fae863e8a5d442684634a1d3b2adcbe74b957a (patch) | |
tree | a2d85abee43a6e35e1da91360209fa70a9d0eea7 /media | |
parent | af69ca187058c417bbb4e653b0dbde8abdddd860 (diff) | |
parent | 6463e76d41430f9b03a79b221de84255f2475658 (diff) | |
download | frameworks_av-f8fae863e8a5d442684634a1d3b2adcbe74b957a.zip frameworks_av-f8fae863e8a5d442684634a1d3b2adcbe74b957a.tar.gz frameworks_av-f8fae863e8a5d442684634a1d3b2adcbe74b957a.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 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp index c9f8741..ff72b71 100644 --- a/media/libstagefright/ACodec.cpp +++ b/media/libstagefright/ACodec.cpp @@ -3416,6 +3416,21 @@ bool ACodec::LoadedToIdleState::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; + } + default: return BaseState::onMessageReceived(msg); } |