Expose a SLogContext from welsCodecTrace

This commit is contained in:
Martin Storsjö 2014-06-10 14:06:14 +03:00
parent 4e428ab020
commit 8bac9315e6
2 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,7 @@
#include <stdarg.h>
#include "typedefs.h"
#include "utils.h"
typedef int32_t (*CM_WELS_TRACE) (const char* string);
@ -51,6 +52,7 @@ class welsCodecTrace {
static int32_t m_iTraceLevel;
static CM_WELS_TRACE m_fpTrace;
SLogContext m_sLogCtx;
};
#endif //WELS_CODEC_TRACE

View File

@ -52,6 +52,9 @@ CM_WELS_TRACE welsCodecTrace::m_fpTrace = NULL;
welsCodecTrace::welsCodecTrace() {
m_fpTrace = welsStderrTrace;
m_sLogCtx.pLogCtx = this;
m_sLogCtx.pfLog = CODEC_TRACE;
}
welsCodecTrace::~welsCodecTrace() {