From bb4190e24823b87a36f3b7db4990a3ae997ec40c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Burda?= Date: Tue, 18 Apr 2017 14:01:35 +0200 Subject: [PATCH] EXT-X-ALLOW-CACHE using YES|NO instead of 1|0 https://tools.ietf.org/html/draft-pantos-http-live-streaming-07#section-3.3.6 --- hls/ngx_rtmp_hls_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hls/ngx_rtmp_hls_module.c b/hls/ngx_rtmp_hls_module.c index 15bd22a..d41daaa 100644 --- a/hls/ngx_rtmp_hls_module.c +++ b/hls/ngx_rtmp_hls_module.c @@ -581,9 +581,9 @@ ngx_rtmp_hls_write_playlist(ngx_rtmp_session_t *s) } if (hacf->allow_client_cache == NGX_RTMP_HLS_CACHE_ENABLED) { - p = ngx_slprintf(p, end, "#EXT-X-ALLOW-CACHE:1\n"); + p = ngx_slprintf(p, end, "#EXT-X-ALLOW-CACHE:YES\n"); } else if (hacf->allow_client_cache == NGX_RTMP_HLS_CACHE_DISABLED) { - p = ngx_slprintf(p, end, "#EXT-X-ALLOW-CACHE:0\n"); + p = ngx_slprintf(p, end, "#EXT-X-ALLOW-CACHE:NO\n"); } n = ngx_write_fd(fd, buffer, p - buffer);