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

Commit 47aea1f7 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

ACodec: remove PTS log spam

Bug: 14976517
Bug: 11784827
Change-Id: Ibc1bbd80e7aac30b0f8f1e9ca2be1bb3e5e2ebbb
parent d25b89d1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -3681,7 +3681,7 @@ void ACodec::BaseState::onOutputBufferDrained(const sp<AMessage> &msg) {
            // API 20.  Perhaps check for target SDK version.
#if 0
            if (info->mData->meta()->findInt64("timeUs", &timestampNs)) {
                ALOGI("using buffer PTS of %" PRId64, timestampNs);
                ALOGV("using buffer PTS of %" PRId64, timestampNs);
                timestampNs *= 1000;
            }
#endif
@@ -3691,8 +3691,6 @@ void ACodec::BaseState::onOutputBufferDrained(const sp<AMessage> &msg) {
        err = native_window_set_buffers_timestamp(mCodec->mNativeWindow.get(), timestampNs);
        if (err != OK) {
            ALOGW("failed to set buffer timestamp: %d", err);
        } else {
            ALOGI("set PTS to %" PRId64, timestampNs);
        }

        if ((err = mCodec->mNativeWindow->queueBuffer(
+1 −1
Original line number Diff line number Diff line
@@ -1728,7 +1728,7 @@ status_t MediaCodec::onReleaseOutputBuffer(const sp<AMessage> &msg) {
            // API 20.  Perhaps check for target SDK version.
#if 0
            if (info->mData->meta()->findInt64("timeUs", &timestampNs)) {
                ALOGI("using buffer PTS of %" PRId64, timestampNs);
                ALOGV("using buffer PTS of %" PRId64, timestampNs);
                timestampNs *= 1000;
            }
#endif