Support verbose mode for regular decoding

Change-Id: I90ed292e7879a78491e2f62b7ee92906496e8fc7
gugelfrei
Marco Nelissen 6 years ago
parent febb45a8e2
commit 4a6dea9142

@ -354,7 +354,10 @@ static void playSource(sp<MediaSource> &source) {
decodeTimesUs.push(delayDecodeUs);
}
if (showProgress && (n++ % 16) == 0) {
if (gVerbose) {
MetaDataBase &meta = buffer->meta_data();
fprintf(stdout, "%ld sample format: %s\n", numFrames, meta.toString().c_str());
} else if (showProgress && (n++ % 16) == 0) {
printf(".");
fflush(stdout);
}

Loading…
Cancel
Save