Expose a SLogContext from welsCodecTrace
This commit is contained in:
parent
4e428ab020
commit
8bac9315e6
@ -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
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user