Merge pull request #1607 from mstorsjo/encoder-init-log

Log the encoder version later in the initialization
This commit is contained in:
sijchen 2014-12-11 10:28:24 +08:00
commit 065c3a7769

View File

@ -166,8 +166,6 @@ void CWelsH264SVCEncoder::InitEncoder (void) {
if (m_pWelsTrace == NULL) {
return;
}
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s",
VERSION_NUMBER);
}
/* Interfaces override from ISVCEncoder */
@ -185,6 +183,9 @@ int CWelsH264SVCEncoder::Initialize (const SEncParamBase* argv) {
return cmMallocMemeError;
}
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s",
VERSION_NUMBER);
if (NULL == argv) {
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, "CWelsH264SVCEncoder::Initialize(), invalid argv= 0x%p",
argv);
@ -209,6 +210,9 @@ int CWelsH264SVCEncoder::InitializeExt (const SEncParamExt* argv) {
return cmMallocMemeError;
}
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s",
VERSION_NUMBER);
if (NULL == argv) {
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, "CWelsH264SVCEncoder::InitializeExt(), invalid argv= 0x%p",
argv);