From e9cb8210fc4e6d8151f22a6775128799069970c2 Mon Sep 17 00:00:00 2001 From: Harlan Date: Tue, 15 May 2018 11:20:52 +0800 Subject: [PATCH] fix default value error --- trunk/src/app/srs_app_config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index 64ab0ac06..cf53bac18 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -6308,7 +6308,7 @@ bool SrsConfig::get_hls_keys(string vhost) int SrsConfig::get_hls_fragments_per_key(string vhost) { - static int DEFAULT = 0; + static int DEFAULT = 10; SrsConfDirective* conf = get_hls(vhost); if (!conf) { @@ -6325,7 +6325,7 @@ int SrsConfig::get_hls_fragments_per_key(string vhost) string SrsConfig::get_hls_key_file(string vhost) { - static string DEFAULT = "[app]/[stream].key"; + static string DEFAULT = "[app]/[stream]-[seq].key"; SrsConfDirective* conf = get_hls(vhost); if (!conf) {