mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge branch '2.0release' into develop
This commit is contained in:
commit
3ca906d560
2 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,7 @@ failed_msg(){
|
|||
|
||||
function check_log(){
|
||||
log_dir="`dirname $log`"
|
||||
(mkdir -p ${log_dir} && sudo chmod 777 ${log_dir} && touch $log)
|
||||
(mkdir -p ${log_dir} && chmod 777 ${log_dir} && touch $log)
|
||||
ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "create log failed, ret=$ret"; return $ret; fi
|
||||
ok_msg "create log( ${log} ) success"
|
||||
|
||||
|
|
|
@ -346,6 +346,7 @@ bool SrsHlsMuxer::is_segment_overflow()
|
|||
|
||||
bool SrsHlsMuxer::is_segment_absolutely_overflow()
|
||||
{
|
||||
// @see https://github.com/winlinvip/simple-rtmp-server/issues/151#issuecomment-83553950
|
||||
srs_assert(current);
|
||||
return current->duration >= hls_aof_ratio * hls_fragment;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue