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 | 0db280176bd3277e3256252d063f3712b1905ba9 (patch) | |
tree | 745ac4d5882f1220d7a815b2a8ecdd86e1783545 /media | |
parent | 54263bcfa6e9ad2fcb3e89617240f4ec0b3a2f99 (diff) | |
download | frameworks_av-0db280176bd3277e3256252d063f3712b1905ba9.zip frameworks_av-0db280176bd3277e3256252d063f3712b1905ba9.tar.gz frameworks_av-0db280176bd3277e3256252d063f3712b1905ba9.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)); } |