Update ngx_rtmp_hls_module.c

This commit is contained in:
Laura Hausmann 2022-02-09 21:50:53 +01:00 committed by GitHub
parent dbb9fc8f7c
commit 60ccf82839
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -639,7 +639,6 @@ ngx_rtmp_hls_write_playlist(ngx_rtmp_session_t *s, int final)
prev_key_id = 0;
for (i = start_i; i < (ngx_int_t)ctx->nfrags; i++) {
for (i = start_i; i < (ngx_int_t) ctx->nfrags; i++) {
f = ngx_rtmp_hls_get_frag(s, i);
if ((i == 0 || f->discont) && f->datetime && f->datetime->len > 0) {
p = ngx_snprintf(buffer, sizeof(buffer), "#EXT-X-PROGRAM-DATE-TIME:");