mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-01 06:09:32 +02:00
fixed crash in hls module
This commit is contained in:
parent
51c1459e04
commit
acc1aa789f
|
@ -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);
|
||||
|
||||
if (!ctx->opened) {
|
||||
if (ctx == NULL || !ctx->opened) {
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue