Skip to content

Commit d4fb497

Browse files
theandi666Android (Google) Code Review
authored andcommitted
Merge "Cut down on AwesomePlayer and OMXCodec's verbosity."
2 parents f7def66 + 262d7e8 commit d4fb497

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

media/libstagefright/AwesomePlayer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void AwesomePlayer::setListener(const wp<MediaPlayerBase> &listener) {
249249
}
250250

251251
void AwesomePlayer::setUID(uid_t uid) {
252-
LOGI("AwesomePlayer running on behalf of uid %d", uid);
252+
LOGV("AwesomePlayer running on behalf of uid %d", uid);
253253

254254
mUID = uid;
255255
mUIDValid = true;
@@ -362,7 +362,7 @@ status_t AwesomePlayer::setDataSource_l(const sp<MediaExtractor> &extractor) {
362362
if (!meta->findInt32(kKeyBitRate, &bitrate)) {
363363
const char *mime;
364364
CHECK(meta->findCString(kKeyMIMEType, &mime));
365-
LOGW("track of type '%s' does not publish bitrate", mime);
365+
LOGV("track of type '%s' does not publish bitrate", mime);
366366

367367
totalBitRate = -1;
368368
break;
@@ -1192,7 +1192,7 @@ void AwesomePlayer::shutdownVideoDecoder_l() {
11921192
usleep(1000);
11931193
}
11941194
IPCThreadState::self()->flushCommands();
1195-
LOGI("video decoder shutdown completed");
1195+
LOGV("video decoder shutdown completed");
11961196
}
11971197

11981198
status_t AwesomePlayer::setNativeWindow_l(const sp<ANativeWindow> &native) {
@@ -1202,7 +1202,7 @@ status_t AwesomePlayer::setNativeWindow_l(const sp<ANativeWindow> &native) {
12021202
return OK;
12031203
}
12041204

1205-
LOGI("attempting to reconfigure to use new surface");
1205+
LOGV("attempting to reconfigure to use new surface");
12061206

12071207
bool wasPlaying = (mFlags & PLAYING) != 0;
12081208

media/libstagefright/OMXCodec.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ status_t OMXCodec::allocateBuffersOnPort(OMX_U32 portIndex) {
16351635
return err;
16361636
}
16371637

1638-
CODEC_LOGI("allocating %lu buffers of size %lu on %s port",
1638+
CODEC_LOGV("allocating %lu buffers of size %lu on %s port",
16391639
def.nBufferCountActual, def.nBufferSize,
16401640
portIndex == kPortIndexInput ? "input" : "output");
16411641

@@ -1876,7 +1876,7 @@ status_t OMXCodec::allocateOutputBuffersFromNativeWindow() {
18761876
return err;
18771877
}
18781878

1879-
CODEC_LOGI("allocating %lu buffers from a native window of size %lu on "
1879+
CODEC_LOGV("allocating %lu buffers from a native window of size %lu on "
18801880
"output port", def.nBufferCountActual, def.nBufferSize);
18811881

18821882
// Dequeue buffers and send them to OMX
@@ -3654,7 +3654,7 @@ status_t OMXCodec::stop() {
36543654

36553655
mSource->stop();
36563656

3657-
CODEC_LOGI("stopped in state %d", mState);
3657+
CODEC_LOGV("stopped in state %d", mState);
36583658

36593659
return OK;
36603660
}
@@ -4219,14 +4219,14 @@ void OMXCodec::initOutputFormat(const sp<MetaData> &inputFormat) {
42194219
inputFormat->findInt32(kKeySampleRate, &sampleRate);
42204220

42214221
if ((OMX_U32)numChannels != params.nChannels) {
4222-
LOGW("Codec outputs a different number of channels than "
4222+
LOGV("Codec outputs a different number of channels than "
42234223
"the input stream contains (contains %d channels, "
42244224
"codec outputs %ld channels).",
42254225
numChannels, params.nChannels);
42264226
}
42274227

42284228
if (sampleRate != (int32_t)params.nSamplingRate) {
4229-
LOGW("Codec outputs at different sampling rate than "
4229+
LOGV("Codec outputs at different sampling rate than "
42304230
"what the input stream contains (contains data at "
42314231
"%d Hz, codec outputs %lu Hz)",
42324232
sampleRate, params.nSamplingRate);

0 commit comments

Comments
 (0)