winlin

fix crash bug for hls cleanup.

@@ -3414,7 +3414,7 @@ bool SrsConfig::get_hls_cleanup(string vhost) @@ -3414,7 +3414,7 @@ bool SrsConfig::get_hls_cleanup(string vhost)
3414 3414
3415 SrsConfDirective* conf = hls->get("hls_cleanup"); 3415 SrsConfDirective* conf = hls->get("hls_cleanup");
3416 3416
3417 - if (!conf && conf->arg0() != "off") { 3417 + if (conf && conf->arg0() != "off") {
3418 return SRS_CONF_DEFAULT_HLS_CLEANUP; 3418 return SRS_CONF_DEFAULT_HLS_CLEANUP;
3419 } 3419 }
3420 3420