From 47aea1f7c58f5302b16822f9e7e1763f2af04ef5 Mon Sep 17 00:00:00 2001 From: Lajos Molnar Date: Thu, 15 May 2014 10:26:08 -0700 Subject: ACodec: remove PTS log spam Bug: 14976517 Bug: 11784827 Change-Id: Ibc1bbd80e7aac30b0f8f1e9ca2be1bb3e5e2ebbb --- media/libstagefright/ACodec.cpp | 4 +--- media/libstagefright/MediaCodec.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp index 4f66402..2e8e412 100644 --- a/media/libstagefright/ACodec.cpp +++ b/media/libstagefright/ACodec.cpp @@ -3681,7 +3681,7 @@ void ACodec::BaseState::onOutputBufferDrained(const sp &msg) { // API 20. Perhaps check for target SDK version. #if 0 if (info->mData->meta()->findInt64("timeUs", ×tampNs)) { - 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 &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( diff --git a/media/libstagefright/MediaCodec.cpp b/media/libstagefright/MediaCodec.cpp index d8a8380..b9c5904 100644 --- a/media/libstagefright/MediaCodec.cpp +++ b/media/libstagefright/MediaCodec.cpp @@ -1728,7 +1728,7 @@ status_t MediaCodec::onReleaseOutputBuffer(const sp &msg) { // API 20. Perhaps check for target SDK version. #if 0 if (info->mData->meta()->findInt64("timeUs", ×tampNs)) { - ALOGI("using buffer PTS of %" PRId64, timestampNs); + ALOGV("using buffer PTS of %" PRId64, timestampNs); timestampNs *= 1000; } #endif -- cgit v1.1