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
2015-04-10 12:30:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
310157ab77f64e4874b4712ae768890c029bb646
310157ab
1 parent
e6d6bdfe
refine the hls_on_notify, calc the spent time in ms.
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
trunk/src/app/srs_app_http_hooks.cpp
trunk/src/app/srs_app_http_hooks.cpp
查看文件 @
310157a
...
...
@@ -341,6 +341,8 @@ int SrsHttpHooks::on_hls_notify(std::string url, SrsRequest* req, std::string ts
url
=
srs_string_replace
(
url
,
"[stream]"
,
req
->
stream
);
url
=
srs_string_replace
(
url
,
"[ts_url]"
,
ts_url
);
int64_t
starttime
=
srs_update_system_time_ms
();
SrsHttpUri
uri
;
if
((
ret
=
uri
.
initialize
(
url
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"http: post failed. url=%s, ret=%d"
,
url
.
c_str
(),
ret
);
...
...
@@ -366,8 +368,9 @@ int SrsHttpHooks::on_hls_notify(std::string url, SrsRequest* req, std::string ts
break
;
}
srs_trace
(
"http hook on_hls_notify success. client_id=%d, url=%s, code=%d, ret=%d"
,
client_id
,
url
.
c_str
(),
msg
->
status_code
(),
ret
);
int
spenttime
=
(
int
)(
srs_update_system_time_ms
()
-
starttime
);
srs_trace
(
"http hook on_hls_notify success. client_id=%d, url=%s, code=%d, spent=%dms, ret=%d"
,
client_id
,
url
.
c_str
(),
msg
->
status_code
(),
spenttime
,
ret
);
// ignore any error for on_hls_notify.
ret
=
ERROR_SUCCESS
;
...
...
请
注册
或
登录
后发表评论