diff options
author | Andreas Huber <andih@google.com> | 2012-02-24 08:41:46 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-02-24 09:06:58 -0800 |
commit | 51656aa9b57f609e4879e99063a9a4e6a837e69a (patch) | |
tree | 9f30cc4509010b81128ee65cd4d67aa562ece317 /media | |
parent | 0862a56caeb3c6b5bdc7b658dbdd3df89993e076 (diff) | |
download | frameworks_base-51656aa9b57f609e4879e99063a9a4e6a837e69a.zip frameworks_base-51656aa9b57f609e4879e99063a9a4e6a837e69a.tar.gz frameworks_base-51656aa9b57f609e4879e99063a9a4e6a837e69a.tar.bz2 |
Small fix to MediaCodec
Change-Id: I6bcbfd35fdf5a2b0260b8f07a630a5b380e139a0
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/MediaCodec.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/media/libstagefright/MediaCodec.cpp b/media/libstagefright/MediaCodec.cpp index 4acbdbe..ad2dfab 100644 --- a/media/libstagefright/MediaCodec.cpp +++ b/media/libstagefright/MediaCodec.cpp @@ -673,9 +673,8 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { int32_t nameIsType; int32_t encoder = false; - if (!msg->findInt32("nameIsType", &nameIsType)) { - nameIsType = false; - } else { + CHECK(msg->findInt32("nameIsType", &nameIsType)); + if (nameIsType) { CHECK(msg->findInt32("encoder", &encoder)); } |