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

Commit 5a0f40aa authored by Praveen Chavan's avatar Praveen Chavan Committed by Linux Build Service Account
Browse files

stagefright: fix-up logging in ACodec

Also print the component name; which is sniffed by
automation scripts to confirm the decoder being used.

Change-Id: Ic5c4f6940cf4608d676959d47156b7bb76f777c0
CRs-Fixed: 720396
parent 6759f7e9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1397,7 +1397,8 @@ status_t ACodec::configureCodec(
                inputFormat->setInt32("adaptive-playback", true);
            }

            ALOGI("DRC Mode: %s", (mStoreMetaDataInOutputBuffers ? "Dynamic Buffer Mode" :
            ALOGI("[%s] DRC Mode: %s", mComponentName.c_str(),
                    (mStoreMetaDataInOutputBuffers ? "Dynamic Buffer Mode" :
                    (bAdaptivePlaybackMode ? "Adaptive Mode" : "Port Reconfig Mode")));
            int32_t push;
            if (msg->findInt32("push-blank-buffers-on-shutdown", &push)
@@ -2385,7 +2386,8 @@ status_t ACodec::setupVideoEncoder(const char *mime, const sp<AMessage> &msg) {
            break;
    }

    ALOGI("setupVideoEncoder %d", err == OK ? "succeeded" : "failed");
    ALOGI("[%s] setupVideoEncoder %s", mComponentName.c_str(),
            err == OK ? "succeeded" : "failed");

    return err;
}