mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-04 07:29:32 +02:00
fixed hls crash in stream eof
This commit is contained in:
parent
acc1aa789f
commit
2eb36e3d7d
|
@ -746,7 +746,7 @@ ngx_rtmp_hls_close_fragment(ngx_rtmp_session_t *s)
|
|||
ngx_rtmp_hls_ctx_t *ctx;
|
||||
|
||||
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