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-11-13 17:04:13 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
38a683192a4387403d7446850a7e60449420cb39
38a68319
1 parent
f2f02b06
fix typo
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
trunk/src/rtmp/srs_protocol_stack.cpp
trunk/src/rtmp/srs_protocol_stack.hpp
trunk/src/rtmp/srs_protocol_stack.cpp
查看文件 @
38a6831
...
...
@@ -413,7 +413,7 @@ SrsProtocol::SrsProtocol(ISrsProtocolReaderWriter* io)
// each chunk consumers atleast 2 iovs
srs_assert
(
nb_out_iovs
>=
2
);
warned_c0c3_cry
=
false
;
warned_c0c3_c
ache_d
ry
=
false
;
}
SrsProtocol
::~
SrsProtocol
()
...
...
@@ -628,10 +628,10 @@ int SrsProtocol::do_send_messages(SrsMessage** msgs, int nb_msgs)
int
c0c3_left
=
SRS_CONSTS_C0C3_HEADERS_MAX
-
c0c3_cache_index
;
if
(
c0c3_left
<
SRS_CONSTS_RTMP_MAX_FMT0_HEADER_SIZE
)
{
// only warn once for a connection.
if
(
!
warned_c0c3_cry
)
{
if
(
!
warned_c0c3_c
ache_d
ry
)
{
srs_warn
(
"c0c3 cache header too small, recoment to %d"
,
SRS_CONSTS_C0C3_HEADERS_MAX
+
SRS_CONSTS_RTMP_MAX_FMT0_HEADER_SIZE
);
warned_c0c3_cry
=
true
;
warned_c0c3_c
ache_d
ry
=
true
;
}
// when c0c3 cache dry,
...
...
trunk/src/rtmp/srs_protocol_stack.hpp
查看文件 @
38a6831
...
...
@@ -226,7 +226,7 @@ private:
*/
char
out_c0c3_caches
[
SRS_CONSTS_C0C3_HEADERS_MAX
];
// whether warned user to increase the c0c3 header cache.
bool
warned_c0c3_cry
;
bool
warned_c0c3_c
ache_d
ry
;
/**
* output chunk size, default to 128, set by config.
*/
...
...
请
注册
或
登录
后发表评论