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
166166 if (m_pWelsTrace == NULL) {
167167 return;
168168 }
169− WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s",
170− VERSION_NUMBER);
171169 }
172170
173171 /* Interfaces override from ISVCEncoder */
@@ -185,6 +183,9 @@ int CWelsH264SVCEncoder::Initialize (const SEncParamBase* argv) { · 11 unmodified lines
185183 return cmMallocMemeError;
186184 }
187185
186+ WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s",
187+ VERSION_NUMBER);
188+
188189 if (NULL == argv) {
189190 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, "CWelsH264SVCEncoder::Initialize(), invalid argv= 0x%p",
190191 argv);
@@ -209,6 +210,9 @@ int CWelsH264SVCEncoder::InitializeExt (const SEncParamExt* argv) { · 18 unmodified lines
209210 return cmMallocMemeError;
210211 }
211212
213+ WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s",
214+ VERSION_NUMBER);
215+
212216 if (NULL == argv) {
213217 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, "CWelsH264SVCEncoder::InitializeExt(), invalid argv= 0x%p",
214218 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