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; }