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-14 17:53:53 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
542aab45576df6a3d219ac65657aef39d52d474e
542aab45
1 parent
02a2cb7e
fix the hls notify bug, pass the query to get path.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
11 行增加
和
1 行删除
trunk/src/app/srs_app_http_hooks.cpp
trunk/src/app/srs_app_http_hooks.cpp
查看文件 @
542aab4
...
...
@@ -358,8 +358,18 @@ int SrsHttpHooks::on_hls_notify(std::string url, SrsRequest* req, std::string ts
return
ret
;
}
std
::
string
path
=
uri
.
get_query
();
if
(
path
.
empty
())
{
path
=
uri
.
get_path
();
}
else
{
path
=
uri
.
get_path
();
path
+=
"?"
;
path
+=
uri
.
get_query
();
}
srs_warn
(
"GET %s"
,
path
.
c_str
());
SrsHttpMessage
*
msg
=
NULL
;
if
((
ret
=
http
.
get
(
uri
.
get_path
(),
""
,
&
msg
))
!=
ERROR_SUCCESS
)
{
if
((
ret
=
http
.
get
(
path
.
c_str
(),
""
,
&
msg
))
!=
ERROR_SUCCESS
)
{
return
ret
;
}
SrsAutoFree
(
SrsHttpMessage
,
msg
);
...
...
请
注册
或
登录
后发表评论