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-02-14 16:30:04 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e88c1e32eec6875ccda1a32460f9c5c81640add4
e88c1e32
1 parent
25af6c68
always increasing target duration, for #304
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
trunk/src/app/srs_app_hls.cpp
trunk/src/app/srs_app_hls.cpp
查看文件 @
e88c1e3
...
...
@@ -204,7 +204,11 @@ int SrsHlsMuxer::update_config(SrsRequest* r, string path, int fragment, int win
hls_path
=
path
;
hls_fragment
=
fragment
;
hls_window
=
window
;
target_duration
=
(
int
)(
fragment
*
_srs_config
->
get_hls_td_ratio
(
r
->
vhost
));
// we always keep the target duration increasing.
int
max_td
=
srs_max
(
target_duration
,
(
int
)(
fragment
*
_srs_config
->
get_hls_td_ratio
(
r
->
vhost
)));
srs_info
(
"hls update target duration %d=>%d"
,
target_duration
,
max_td
);
target_duration
=
max_td
;
std
::
string
storage
=
_srs_config
->
get_hls_storage
(
r
->
vhost
);
if
(
storage
==
"ram"
)
{
...
...
请
注册
或
登录
后发表评论