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 13:21:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
15ae4745f47857e78de44e4704c750fc3d3499b2
15ae4745
1 parent
07d55010
add macro to disable log.
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
10 行增加
和
2 行删除
trunk/src/libs/srs_librtmp.hpp
trunk/src/libs/srs_librtmp.hpp
查看文件 @
15ae474
...
...
@@ -926,8 +926,12 @@ 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
();
// when hijack the log, user will defines this macros.
#ifndef SRS_HIJACK_LOG
// when disabled log, donot compile it.
#ifdef SRS_DISABLE_LOG
#define srs_human_trace(msg, ...) (void)0
#define srs_human_verbose(msg, ...) (void)0
#define srs_human_raw(msg, ...) (void)0
#else
#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__)
...
...
@@ -944,6 +948,10 @@ typedef void* srs_hijack_io_t;
// the example @see https://github.com/winlinvip/st-load
// which use librtmp but use its own io(use st also).
#ifdef SRS_HIJACK_IO
#ifndef _WIN32
// for iovec.
#include <sys/uio.h>
#endif
/**
* create hijack.
* @return NULL for error; otherwise, ok.
...
...
请
注册
或
登录
后发表评论