From 3877ab0ff2b1e2f2e0a0399254dc230c22ba6324 Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 28 Nov 2013 09:14:31 +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 42578e3ce..806691539 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; }