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 18:19:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6f963b50f3e54426b76fd5e172baaea81597071e
6f963b50
1 parent
e9712cc6
refine code, publish recv thread sleep 697ms
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
trunk/src/app/srs_app_rtmp_conn.cpp
trunk/src/app/srs_app_rtmp_conn.cpp
查看文件 @
6f963b5
...
...
@@ -750,9 +750,9 @@ int SrsRtmpConn::do_publishing(SrsSource* source, SrsPublishRecvThread* trd)
int64_t
nb_msgs
=
0
;
while
(
true
)
{
// use small loop to check the error code, interval = 30s/100 = 300ms.
for
(
int
i
=
0
;
i
<
100
;
i
++
)
{
st_usleep
(
SRS_CONSTS_RTMP_RECV_TIMEOUT_US
/
100
);
// use small loop to check the error code, interval = 30s/43 = 697ms.
for
(
int
i
=
0
;
i
<
43
;
i
++
)
{
st_usleep
(
SRS_CONSTS_RTMP_RECV_TIMEOUT_US
/
43
);
// check the thread error code.
if
((
ret
=
trd
->
error_code
())
!=
ERROR_SUCCESS
)
{
...
...
请
注册
或
登录
后发表评论