|
|
|
@ -221,7 +221,13 @@ void CodecHandler::onMessageReceived(const sp<AMessage> &msg) {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AMediaFormat *aMediaFormat = AMediaFormat_fromMsg(&format);
|
|
|
|
|
// Here format is MediaCodec's internal copy of output format.
|
|
|
|
|
// Make a copy since the client might modify it.
|
|
|
|
|
sp<AMessage> copy;
|
|
|
|
|
if (format != nullptr) {
|
|
|
|
|
copy = format->dup();
|
|
|
|
|
}
|
|
|
|
|
AMediaFormat *aMediaFormat = AMediaFormat_fromMsg(©);
|
|
|
|
|
|
|
|
|
|
Mutex::Autolock _l(mCodec->mAsyncCallbackLock);
|
|
|
|
|
if (mCodec->mAsyncCallbackUserData != NULL
|
|
|
|
|