1. add Tid API UT

2. add Trace UT
3. Fix a crash issue when set NULL trace
This commit is contained in:
dongzha
2014-09-16 09:58:58 +08:00
committed by dong zhang
parent 8538b22f23
commit c213c6ba30
2 changed files with 472 additions and 2 deletions

View File

@@ -78,8 +78,9 @@ void welsCodecTrace::CodecTrace (const int32_t iLevel, const char* Str_Format, v
char pBuf[MAX_LOG_SIZE] = {0};
WelsVsnprintf (pBuf, MAX_LOG_SIZE, Str_Format, vl); // confirmed_safe_unsafe_usage
m_fpTrace (m_pTraceCtx, iLevel, pBuf);
if (m_fpTrace) {
m_fpTrace (m_pTraceCtx, iLevel, pBuf);
}
}
void welsCodecTrace::SetTraceLevel (const int32_t iLevel) {