From 005f8214415374a7a0c6c2760da6832b6fbe718b Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 28 Nov 2013 09:14:56 +0800 Subject: [PATCH] fix bug of hls conf detect --- trunk/src/core/srs_core_hls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/core/srs_core_hls.cpp b/trunk/src/core/srs_core_hls.cpp index 806691539..b3509ce77 100644 --- a/trunk/src/core/srs_core_hls.cpp +++ b/trunk/src/core/srs_core_hls.cpp @@ -689,7 +689,7 @@ int SrsHls::reopen() // try to open the HLS muxer SrsConfDirective* conf = config->get_hls(vhost); - if (!conf || conf->arg0() == "off") { + if (conf && conf->arg0() == "off") { return ret; }