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:
Jan Alexander Steffens (heftig) 2016-11-25 13:25:58 +01:00
parent d25c56fa69
commit 1c3dc989ef
No known key found for this signature in database
GPG Key ID: DE5E0C5F25941CA5
1 changed files with 1 additions and 1 deletions

View File

@ -1565,7 +1565,7 @@ ngx_rtmp_dash_cleanup_dir(ngx_str_t *ppath, ngx_msec_t playlen)
"dash: cleanup '%V' allowed, mpd missing '%s'",
&name, mpd_path);
max_age = 0;
max_age = playlen / 500;
} else if (name.len >= 4 && name.data[name.len - 4] == '.' &&
name.data[name.len - 3] == 'm' &&