Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-12-02 12:51:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f6032ffe6b01384b4c88481611f55e059e8da8b3
f6032ffe
1 parent
3584bdb7
always use system log and context. allow hijack the human print macro.
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
10 行增加
和
9 行删除
trunk/src/libs/srs_librtmp.cpp
trunk/src/libs/srs_librtmp.hpp
trunk/src/libs/srs_librtmp.cpp
查看文件 @
f6032ff
...
...
@@ -48,12 +48,9 @@ using namespace std;
#include <srs_kernel_file.hpp>
#include <srs_lib_bandwidth.hpp>
// if want to use your log, define the folowing macro.
#ifndef SRS_HIJACK_LOG
// kernel module.
ISrsLog
*
_srs_log
=
new
ISrsLog
();
ISrsThreadContext
*
_srs_context
=
new
ISrsThreadContext
();
#endif
// kernel module.
ISrsLog
*
_srs_log
=
new
ISrsLog
();
ISrsThreadContext
*
_srs_context
=
new
ISrsThreadContext
();
/**
* export runtime context.
...
...
trunk/src/libs/srs_librtmp.hpp
查看文件 @
f6032ff
...
...
@@ -926,9 +926,13 @@ extern int srs_human_print_rtmp_packet(char type, u_int32_t timestamp, char* dat
// log to console, for use srs-librtmp application.
extern
const
char
*
srs_human_format_time
();
#define srs_human_trace(msg, ...) printf("[%s] ", srs_human_format_time());printf(msg, ##__VA_ARGS__);printf("\n")
#define srs_human_verbose(msg, ...) printf("[%s] ", srs_human_format_time());printf(msg, ##__VA_ARGS__);printf("\n")
#define srs_human_raw(msg, ...) printf(msg, ##__VA_ARGS__)
// when hijack the log, user will defines this macros.
#ifndef SRS_HIJACK_LOG
#define srs_human_trace(msg, ...) printf("[%s] ", srs_human_format_time());printf(msg, ##__VA_ARGS__);printf("\n")
#define srs_human_verbose(msg, ...) printf("[%s] ", srs_human_format_time());printf(msg, ##__VA_ARGS__);printf("\n")
#define srs_human_raw(msg, ...) printf(msg, ##__VA_ARGS__)
#endif
/*************************************************************
**************************************************************
...
...
请
注册
或
登录
后发表评论