shithub: openh264

Download patch

ref: 7da17b5abd055d661047a0de7eeb148d942c807b
parent: af97f2d4bb4ea1b958f4e97f83a4db859865f4cf
author: Martin Storsjö <martin@martin.st>
date: Wed Dec 10 09:39:08 EST 2014

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.

--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -166,8 +166,6 @@
   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 @@
     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);
@@ -208,6 +209,9 @@
   if (m_pWelsTrace == NULL) {
     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",