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.
Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -166,8 +166,6 @@ void CWelsH264SVCEncoder::InitEncoder (void) { · 165 unmodified lines | ||
| 166 | 166 | if (m_pWelsTrace == NULL) { |
| 167 | 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 | 171 | /* Interfaces override from ISVCEncoder */ |
| @@ -185,6 +183,9 @@ int CWelsH264SVCEncoder::Initialize (const SEncParamBase* argv) { · 11 unmodified lines | ||
| 185 | 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 | 189 | if (NULL == argv) { |
| 189 | 190 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, "CWelsH264SVCEncoder::Initialize(), invalid argv= 0x%p", |
| 190 | 191 | argv); |
| @@ -209,6 +210,9 @@ int CWelsH264SVCEncoder::InitializeExt (const SEncParamExt* argv) { · 18 unmodified lines | ||
| 209 | 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 | 216 | if (NULL == argv) { |
| 213 | 217 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, "CWelsH264SVCEncoder::InitializeExt(), invalid argv= 0x%p", |
| 214 | 218 | argv); |