ref: 4db34bdf4330d89b4ecdb3b582803f3bc5a519ae
parent: b208cac1c52e013afbcfd5387f1c16133cd17757
parent: 026ce4030a9d29454ef2829096d07bb10cbef901
author: sijchen <sijchen@cisco.com>
date: Thu Dec 18 05:11:38 EST 2014
Merge pull request #1634 from ruil2/trace use WELS_LOG_ERROR as default trace level in console app
--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -109,7 +109,7 @@
static void SigIntHandler (int a) {
g_iCtrlC = 1;
}
-static int g_LevelSetting = -1;
+static int g_LevelSetting = WELS_LOG_ERROR;
int ParseLayerConfig (CReadConfig& cRdLayerCfg, const int iLayer, SEncParamExt& pSvcParam, SFilesSet& sFileSet) {
if (!cRdLayerCfg.ExistFile()) {
@@ -710,9 +710,7 @@
iRet = 1;
goto INSIDE_MEM_FREE;
}
- if (g_LevelSetting >= 0) {
- pPtrEnc->SetOption (ENCODER_OPTION_TRACE_LEVEL, &g_LevelSetting);
- }
+ pPtrEnc->SetOption (ENCODER_OPTION_TRACE_LEVEL, &g_LevelSetting);
//finish reading the configurations
iSourceWidth = pSrcPic->iPicWidth;
iSourceHeight = pSrcPic->iPicHeight;