diff options
author | Lajos Molnar <lajos@google.com> | 2014-07-07 15:08:24 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-07-07 16:40:21 -0700 |
commit | d8cbe4a024ef54adf043b6ea31fa22271b8b2c51 (patch) | |
tree | 4aa4389dd9656196fd5ffd730c811839cec3723a /cmds | |
parent | 92cd05b8f2e994aabcdda5d7454c96a707dc9579 (diff) | |
download | frameworks_av-d8cbe4a024ef54adf043b6ea31fa22271b8b2c51.zip frameworks_av-d8cbe4a024ef54adf043b6ea31fa22271b8b2c51.tar.gz frameworks_av-d8cbe4a024ef54adf043b6ea31fa22271b8b2c51.tar.bz2 |
stagefright: update ACodec to use CodecBase enumerations directly
Bug: 11784825
Change-Id: I9f322b78b52bfcc5040fda951486df4354cdba4f
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/stagefright/sf2.cpp | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/cmds/stagefright/sf2.cpp b/cmds/stagefright/sf2.cpp index 3c0c7ec..0f729a3 100644 --- a/cmds/stagefright/sf2.cpp +++ b/cmds/stagefright/sf2.cpp @@ -211,28 +211,28 @@ protected: int32_t what; CHECK(msg->findInt32("what", &what)); - if (what == ACodec::kWhatFillThisBuffer) { + if (what == CodecBase::kWhatFillThisBuffer) { onFillThisBuffer(msg); - } else if (what == ACodec::kWhatDrainThisBuffer) { + } else if (what == CodecBase::kWhatDrainThisBuffer) { if ((mNumOutputBuffersReceived++ % 16) == 0) { printf("."); fflush(stdout); } onDrainThisBuffer(msg); - } else if (what == ACodec::kWhatEOS - || what == ACodec::kWhatError) { - printf((what == ACodec::kWhatEOS) ? "$\n" : "E\n"); + } else if (what == CodecBase::kWhatEOS + || what == CodecBase::kWhatError) { + printf((what == CodecBase::kWhatEOS) ? "$\n" : "E\n"); printStatistics(); (new AMessage(kWhatStop, id()))->post(); - } else if (what == ACodec::kWhatFlushCompleted) { + } else if (what == CodecBase::kWhatFlushCompleted) { mSeekState = SEEK_FLUSH_COMPLETED; mCodec->signalResume(); (new AMessage(kWhatSeek, id()))->post(5000000ll); - } else if (what == ACodec::kWhatOutputFormatChanged) { - } else if (what == ACodec::kWhatShutdownCompleted) { + } else if (what == CodecBase::kWhatOutputFormatChanged) { + } else if (what == CodecBase::kWhatShutdownCompleted) { mDecodeLooper->unregisterHandler(mCodec->id()); if (mDecodeLooper != looper()) { @@ -240,12 +240,6 @@ protected: } looper()->stop(); - } else if (what == ACodec::kWhatError) { - ALOGE("something went wrong, codec reported an error."); - - printf("E\n"); - - (new AMessage(kWhatStop, id()))->post(); } break; } |