diff options
author | Andreas Huber <andih@google.com> | 2010-09-21 13:13:15 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-09-21 15:12:19 -0700 |
commit | 6e4c5c499999c04c2477b987f9e64f3ff2bf1a06 (patch) | |
tree | d19a0fc9db90d33a693f0e64cc79c31f38d414c4 /media/libstagefright/rtsp/APacketSource.cpp | |
parent | 425587d4566c1667448bf91fa452b4def8b6cedb (diff) | |
download | frameworks_av-6e4c5c499999c04c2477b987f9e64f3ff2bf1a06.zip frameworks_av-6e4c5c499999c04c2477b987f9e64f3ff2bf1a06.tar.gz frameworks_av-6e4c5c499999c04c2477b987f9e64f3ff2bf1a06.tar.bz2 |
Remove stagefright foundation's incompatible logging interface and update callsites.
Change-Id: I45fba7d60530ea0f233ac3695a97306b6dc1795c
Diffstat (limited to 'media/libstagefright/rtsp/APacketSource.cpp')
-rw-r--r-- | media/libstagefright/rtsp/APacketSource.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/media/libstagefright/rtsp/APacketSource.cpp b/media/libstagefright/rtsp/APacketSource.cpp index b3e86eb..78754e6 100644 --- a/media/libstagefright/rtsp/APacketSource.cpp +++ b/media/libstagefright/rtsp/APacketSource.cpp @@ -14,6 +14,10 @@ * limitations under the License. */ +//#define LOG_NDEBUG 0 +#define LOG_TAG "APacketSource" +#include <utils/Log.h> + #include "APacketSource.h" #include "ASessionDescription.h" @@ -188,7 +192,7 @@ static sp<ABuffer> MakeAVCCodecSpecificData( if (i == 0) { FindAVCDimensions(nal, width, height); - LOG(INFO) << "dimensions " << *width << "x" << *height; + LOGI("dimensions %dx%d", *width, *height); } } @@ -412,7 +416,7 @@ static bool ExtractDimensionsFromVOLHeader( *width = video_object_layer_width; *height = video_object_layer_height; - LOG(INFO) << "VOL dimensions = " << *width << "x" << *height; + LOGI("VOL dimensions = %dx%d", *width, *height); return true; } @@ -711,7 +715,7 @@ void APacketSource::updateNormalPlayTime_l(const sp<ABuffer> &buffer) { void APacketSource::queueAccessUnit(const sp<ABuffer> &buffer) { int32_t damaged; if (buffer->meta()->findInt32("damaged", &damaged) && damaged) { - LOG(VERBOSE) << "discarding damaged AU"; + LOGV("discarding damaged AU"); return; } @@ -765,8 +769,9 @@ int64_t APacketSource::getQueueDurationUs(bool *eos) { CHECK(last->meta()->findInt64("timeUs", &lastTimeUs)); if (lastTimeUs < firstTimeUs) { - LOG(ERROR) << "Huh? Time moving backwards? " - << firstTimeUs << " > " << lastTimeUs; + LOGE("Huh? Time moving backwards? %lld > %lld", + firstTimeUs, lastTimeUs); + return 0; } |