1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix default value error

This commit is contained in:
Harlan 2018-05-15 11:20:52 +08:00
parent 90f70d4cd3
commit e9cb8210fc

View file

@ -6308,7 +6308,7 @@ bool SrsConfig::get_hls_keys(string vhost)
int SrsConfig::get_hls_fragments_per_key(string vhost) int SrsConfig::get_hls_fragments_per_key(string vhost)
{ {
static int DEFAULT = 0; static int DEFAULT = 10;
SrsConfDirective* conf = get_hls(vhost); SrsConfDirective* conf = get_hls(vhost);
if (!conf) { if (!conf) {
@ -6325,7 +6325,7 @@ int SrsConfig::get_hls_fragments_per_key(string vhost)
string SrsConfig::get_hls_key_file(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); SrsConfDirective* conf = get_hls(vhost);
if (!conf) { if (!conf) {