Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79ee2399 authored by Jianzheng Zhou's avatar Jianzheng Zhou Committed by Lajos Molnar
Browse files

correct one logic error in decide whether should render or not



Change-Id: Ie41663f6fd5a7d983279f14a2228cb57231771bf
Signed-off-by: default avatarJianzheng Zhou <jianzheng.zhou@freescale.com>
parent c4eef29a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3415,7 +3415,7 @@ void ACodec::BaseState::onOutputBufferDrained(const sp<AMessage> &msg) {
    int32_t render;
    if (mCodec->mNativeWindow != NULL
            && msg->findInt32("render", &render) && render != 0
            && (info->mData == NULL || info->mData->size() != 0)) {
            && info->mData != NULL && info->mData->size() != 0) {
        // The client wants this buffer to be rendered.

        status_t err;
+1 −1
Original line number Diff line number Diff line
@@ -1680,7 +1680,7 @@ status_t MediaCodec::onReleaseOutputBuffer(const sp<AMessage> &msg) {
        return -EACCES;
    }

    if (render && (info->mData == NULL || info->mData->size() != 0)) {
    if (render && info->mData != NULL && info->mData->size() != 0) {
        info->mNotify->setInt32("render", true);

        if (mSoftRenderer != NULL) {