Small fix to MediaCodec

Change-Id: I6bcbfd35fdf5a2b0260b8f07a630a5b380e139a0
This commit is contained in:
Andreas Huber
2012-02-24 08:41:46 -08:00
parent 0862a56cae
commit 51656aa9b5

View File

@@ -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));
}