OSDN Git Service

omx: video: quiet log a little
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 3 May 2017 09:33:33 +0000 (17:33 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 8 May 2017 09:06:20 +0000 (17:06 +0800)
Distinguish no frame and EOS cases.

No frame is normal. Make it less verbose.

omx/SoftFFmpegVideo.cpp

index d6b1378..6962ced 100644 (file)
@@ -486,12 +486,13 @@ int32_t SoftFFmpegVideo::decodeVideo() {
         ret = ERR_NO_FRM;
     } else {
         if (!gotPic) {
-            ALOGI("ffmpeg video decoder failed to get frame.");
             //stop sending empty packets if the decoder is finished
             if ((mEOSStatus != INPUT_DATA_AVAILABLE && (mCtx->codec->capabilities & AV_CODEC_CAP_DELAY) &&
                 !inHeader) || inHeader->nFilledLen == 0) {
+                ALOGD("ffmpeg video decoder flushed.");
                 ret = ERR_FLUSHED;
             } else {
+                ALOGV("ffmpeg video decoder failed to get frame.");
                 ret = ERR_NO_FRM;
             }
         } else {