Merge pull request #2372 from ruil2/refine_trace
update trace for ENCODER_OPTION_TRACE_CALLBACK
This commit is contained in:
commit
321c772536
@ -330,8 +330,8 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) {
|
||||
if (m_pWelsTrace) {
|
||||
WelsTraceCallback callback = * ((WelsTraceCallback*)pOption);
|
||||
m_pWelsTrace->SetTraceCallback (callback);
|
||||
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsDecoder::SetOption(), openh264 codec version = %s.",
|
||||
VERSION_NUMBER);
|
||||
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsDecoder::SetOption():DECODER_OPTION_TRACE_CALLBACK callback = %p.",
|
||||
callback);
|
||||
}
|
||||
return cmResultSuccess;
|
||||
} else if (eOptID == DECODER_OPTION_TRACE_CALLBACK_CONTEXT) {
|
||||
|
@ -1065,8 +1065,8 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) {
|
||||
if (m_pWelsTrace) {
|
||||
WelsTraceCallback callback = * ((WelsTraceCallback*)pOption);
|
||||
m_pWelsTrace->SetTraceCallback (callback);
|
||||
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::SetOption(), openh264 codec version = %s.",
|
||||
VERSION_NUMBER);
|
||||
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_TRACE_CALLBACK callback = %p.",
|
||||
callback);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user