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
wenjie.zhao
2015-03-13 02:01:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
65f404fb425631a2662cee624e8f35c1518f62f0
65f404fb
1 parent
5969f723
for #340, refine ts prefix code.
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
6 行增加
和
7 行删除
trunk/conf/hls.conf
trunk/src/app/srs_app_config.cpp
trunk/conf/hls.conf
查看文件 @
65f404f
...
...
@@ -9,7 +9,6 @@ vhost __defaultVhost__ {
enabled
on
;
hls_fragment
10
;
hls_window
60
;
# hls_entry_prefix http://127.0.0.1/;
hls_path
./
objs
/
nginx
/
html
;
}
}
...
...
trunk/src/app/srs_app_config.cpp
查看文件 @
65f404f
...
...
@@ -3152,17 +3152,17 @@ string SrsConfig::get_hls_entry_prefix(string vhost)
return
""
;
}
std
::
string
hls_entry_prefix
=
conf
->
arg0
();
if
(
hls_entry_prefix
.
empty
())
{
std
::
string
prefix
=
conf
->
arg0
();
if
(
prefix
.
empty
())
{
return
""
;
}
char
last_char
=
hls_entry_prefix
[
hls_entry_prefix
.
length
()
-
1
];
if
(
last_char
!=
'/'
)
{
hls_entry_prefix
.
append
(
"/"
);
const
char
last
=
prefix
[
prefix
.
length
()
-
1
];
if
(
last
!=
'/'
)
{
return
prefix
.
append
(
"/"
);
}
return
hls_entry_
prefix
;
return
prefix
;
}
string
SrsConfig
::
get_hls_path
(
string
vhost
)
...
...
请
注册
或
登录
后发表评论