ref: 8bac9315e6d32e8dd3b684ffc5404b93c9c81ec8
parent: 4e428ab020298405e0587389e2bb71b6cad16c3a
author: Martin Storsjö <martin@martin.st>
date: Tue Jun 10 10:06:14 EDT 2014
Expose a SLogContext from welsCodecTrace
--- a/codec/common/inc/welsCodecTrace.h
+++ b/codec/common/inc/welsCodecTrace.h
@@ -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 @@
static int32_t m_iTraceLevel;
static CM_WELS_TRACE m_fpTrace;
+ SLogContext m_sLogCtx;
};
#endif //WELS_CODEC_TRACE
--- a/codec/common/src/welsCodecTrace.cpp
+++ b/codec/common/src/welsCodecTrace.cpp
@@ -52,6 +52,9 @@
welsCodecTrace::welsCodecTrace() {
m_fpTrace = welsStderrTrace;
+
+ m_sLogCtx.pLogCtx = this;
+ m_sLogCtx.pfLog = CODEC_TRACE;
}
welsCodecTrace::~welsCodecTrace() {