mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-04-28 18:53:45 +02:00
Work around deletion of still-needed init segments
I assume they get accidentally deleted right after they're written, before the playlist is first created. Leave them around for another cleanup cycle rather than risk deleting them while still needed.
This commit is contained in:
parent
d25c56fa69
commit
1c3dc989ef
|
@ -1565,7 +1565,7 @@ ngx_rtmp_dash_cleanup_dir(ngx_str_t *ppath, ngx_msec_t playlen)
|
||||||
"dash: cleanup '%V' allowed, mpd missing '%s'",
|
"dash: cleanup '%V' allowed, mpd missing '%s'",
|
||||||
&name, mpd_path);
|
&name, mpd_path);
|
||||||
|
|
||||||
max_age = 0;
|
max_age = playlen / 500;
|
||||||
|
|
||||||
} else if (name.len >= 4 && name.data[name.len - 4] == '.' &&
|
} else if (name.len >= 4 && name.data[name.len - 4] == '.' &&
|
||||||
name.data[name.len - 3] == 'm' &&
|
name.data[name.len - 3] == 'm' &&
|
||||||
|
|
Loading…
Reference in a new issue