History

Log the encoder version later in the initialization

Previously, the encoder logging was done in InitEncoder(), which is called from the constructor. Therefore, it was impossible to override the log level, to silence this message.

Martin Storsjö committed 11 years ago

Commit 7da17b51 parent af97f2d1 file · +6 −2Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+6−2
@@ -166,8 +166,6 @@ void CWelsH264SVCEncoder::InitEncoder (void) { · 165 unmodified lines
166 if (m_pWelsTrace == NULL) {166 if (m_pWelsTrace == NULL) {
167 return;167 return;
168 }168 }
169 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s",
170 VERSION_NUMBER);
171}169}
172 170
173/* Interfaces override from ISVCEncoder */171/* Interfaces override from ISVCEncoder */
@@ -185,6 +183,9 @@ int CWelsH264SVCEncoder::Initialize (const SEncParamBase* argv) { · 11 unmodified lines
185 return cmMallocMemeError;183 return cmMallocMemeError;
186 }184 }
187 185
186 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s",
187 VERSION_NUMBER);
188
188 if (NULL == argv) {189 if (NULL == argv) {
189 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, "CWelsH264SVCEncoder::Initialize(), invalid argv= 0x%p",190 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, "CWelsH264SVCEncoder::Initialize(), invalid argv= 0x%p",
190 argv);191 argv);
@@ -209,6 +210,9 @@ int CWelsH264SVCEncoder::InitializeExt (const SEncParamExt* argv) { · 18 unmodified lines
209 return cmMallocMemeError;210 return cmMallocMemeError;
210 }211 }
211 212
213 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s",
214 VERSION_NUMBER);
215
212 if (NULL == argv) {216 if (NULL == argv) {
213 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, "CWelsH264SVCEncoder::InitializeExt(), invalid argv= 0x%p",217 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, "CWelsH264SVCEncoder::InitializeExt(), invalid argv= 0x%p",
214 argv);218 argv);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t