From 1c084694fe24f51f885e9cc43712cf62b033ff39 Mon Sep 17 00:00:00 2001 From: Jeff Tinker Date: Thu, 17 May 2012 06:41:27 -0700 Subject: [PATCH] Add bandwidth to adaptive log Change-Id: I79bf860db76bbdc6020d617f918cafb1f73d54de related-to-bug: 6500173 --- proprietary/wvm/WVMExtractorImpl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/proprietary/wvm/WVMExtractorImpl.cpp b/proprietary/wvm/WVMExtractorImpl.cpp index 249bec0f..98bc3a72 100644 --- a/proprietary/wvm/WVMExtractorImpl.cpp +++ b/proprietary/wvm/WVMExtractorImpl.cpp @@ -488,8 +488,11 @@ int64_t WVMExtractorImpl::getCachedDurationUs(status_t *finalStatus) { static time_t lastLogTime = now; if (now > lastLogTime + 5) { lastLogTime = now; - ALOGI("using adaptive track #%d, rate=%ld\n", - currentTrack, encodedRates[currentTrack]); + unsigned long bandwidth = -1; + WV_Info_CurrentBandwidth(mSession, &bandwidth); + + ALOGI("using adaptive track #%d, rate=%ld, bandwidth=%ld\n", + currentTrack, encodedRates[currentTrack], bandwidth); } } }