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:27:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e6d6bdfe57d2af6db420be7b72fc2858dc35d2fe
e6d6bdfe
1 parent
e3c6e525
refine the hls_on_notify, only read a chunk.
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
trunk/src/app/srs_app_hls.cpp
trunk/src/app/srs_app_http_hooks.cpp
trunk/src/app/srs_app_hls.cpp
查看文件 @
e6d6bdf
...
...
@@ -243,7 +243,7 @@ int SrsDvrAsyncCallOnHlsNotify::call()
for
(
int
i
=
0
;
i
<
(
int
)
on_hls
->
args
.
size
();
i
++
)
{
std
::
string
url
=
on_hls
->
args
.
at
(
i
);
if
((
ret
=
SrsHttpHooks
::
on_hls_notify
(
url
,
req
,
ts_url
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"hook client on_hls_notify failed. url=%s,
ret=%d"
,
url
.
c_str
(),
ret
);
srs_error
(
"hook client on_hls_notify failed. url=%s,
ts=%s, ret=%d"
,
url
.
c_str
(),
ts_
url
.
c_str
(),
ret
);
return
ret
;
}
}
...
...
trunk/src/app/srs_app_http_hooks.cpp
查看文件 @
e6d6bdf
...
...
@@ -361,10 +361,10 @@ int SrsHttpHooks::on_hls_notify(std::string url, SrsRequest* req, std::string ts
ISrsHttpResponseReader
*
br
=
msg
->
body_reader
();
while
(
!
br
->
eof
())
{
std
::
string
data
;
if
((
ret
=
br
->
read
(
data
))
!=
ERROR_SUCCESS
)
{
// for notify, only read some data.
ret
=
br
->
read
(
data
);
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
);
...
...
请
注册
或
登录
后发表评论