mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
fixed crash in hls module
This commit is contained in:
@ -1417,7 +1417,7 @@ ngx_rtmp_hls_flush_audio(ngx_rtmp_session_t *s)
|
|||||||
|
|
||||||
ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_hls_module);
|
ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_hls_module);
|
||||||
|
|
||||||
if (!ctx->opened) {
|
if (ctx == NULL || !ctx->opened) {
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user