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

Commit 5db1e3a6 authored by Lajos Molnar's avatar Lajos Molnar Committed by Gerrit Code Review
Browse files

Merge "correct one logic error in decide whether should render or not"

parents c4eef29a 79ee2399
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) {