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-06-10 11:44:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4d9ed6f7febe93325bd1b5be00de2fcf505c9f7d
4d9ed6f7
1 parent
88178234
refine the code, add comments to result to self interpret
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
8 行增加
和
4 行删除
trunk/research/librtmp/srs_detect_rtmp.c
trunk/research/librtmp/srs_detect_rtmp.c
查看文件 @
4d9ed6f
...
...
@@ -154,7 +154,8 @@ rtmp_destroy:
"
\"
%s
\"
:%d, "
// #5
"
\"
%s
\"
:%d, "
// #6
"
\"
%s
\"
:%d, "
// #7
"%s}"
,
"
\"
%s
\"
:%d, "
// #8
"%s%s%s}"
,
// total = dns + tcp_connect + start_play + first_packet + last_packet
"total"
,
(
int
)(
time_cleanup
-
time_startup
),
//#1
"dns"
,
(
int
)(
time_dns_resolve
-
time_startup
),
//#2
...
...
@@ -162,12 +163,15 @@ rtmp_destroy:
"start_play"
,
(
int
)(
time_play_stream
-
time_socket_connect
),
//#4
"first_packet"
,
(
int
)(
time_first_packet
-
time_play_stream
),
//#5
"last_packet"
,
(
int
)(
time_cleanup
-
time_first_packet
),
//#6
"stream"
,
(
int
)(
timestamp
),
//#7
// expect = time_cleanup - time_first_packet
// actual =
timestamp
// actual =
stream
// delay = actual - expect
"delay"
,
(
int
)(
timestamp
-
(
time_cleanup
-
time_first_packet
)),
//#
7
"delay"
,
(
int
)(
timestamp
-
(
time_cleanup
-
time_first_packet
)),
//#
8
// unit in ms.
"
\"
unit
\"
:
\"
ms
\"
"
"
\"
unit
\"
:
\"
ms
\"
,"
,
"
\"
remark0
\"
:
\"
total = dns + tcp_connect + start_play + first_packet + last_packet
\"
,"
,
"
\"
remark1
\"
:
\"
delay = stream - (time_cleanup - time_first_packet)
\"
"
);
printf
(
"
\n
"
);
...
...
请
注册
或
登录
后发表评论