合并pr(#661): 减少unsport code打印,新增git信息获取

(cherry picked from commit 47f2f5b349)
This commit is contained in:
monktan
2020-12-29 11:36:06 +08:00
committed by xiongziliang
parent d37607026f
commit 3ddc14d35d
6 changed files with 72 additions and 8 deletions

View File

@@ -215,8 +215,11 @@ void DecoderImp::onDecode(int stream,int codecid,int flags,int64_t pts,int64_t d
}
default:
if(codecid != 0){
WarnL<< "unsupported codec type:" << getCodecName(codecid) << " " << (int)codecid;
if (codecid != 0) {
if (_last_unsported_print.elapsedTime() / 1000 > 5) {
_last_unsported_print.resetTime();
WarnL << "unsupported codec type:" << getCodecName(codecid) << " " << (int) codecid;
}
}
break;
}