mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-09 22:11:08 +02:00
Merge fixes for nginx 1.11.5-style cache-manager by @arut
- merge some code from 5150993acc
This commit is contained in:
parent
18b228a01d
commit
dc76eb2641
|
@ -1634,7 +1634,11 @@ ngx_rtmp_dash_cleanup(void *data)
|
|||
|
||||
// Next callback in doubled playlist length time to make sure what all
|
||||
// players read all segments
|
||||
#if (nginx_version >= 1011005)
|
||||
return cleanup->playlen * 2;
|
||||
#else
|
||||
return cleanup->playlen / 500;
|
||||
#endif
|
||||
}
|
||||
|
||||
static ngx_int_t
|
||||
|
|
|
@ -2377,7 +2377,11 @@ ngx_rtmp_hls_cleanup(void *data)
|
|||
ngx_rtmp_hls_cleanup_dir(&cleanup->path, cleanup->playlen);
|
||||
|
||||
// Next callback in half of playlist length time
|
||||
#if (nginx_version >= 1011005)
|
||||
return cleanup->playlen / 2;
|
||||
#else
|
||||
return cleanup->playlen / 2000;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue