fixed crash in dash

This commit is contained in:
Roman Arutyunyan 2013-12-24 20:04:28 +04:00
parent 61cb334917
commit bcf7df1e70

View file

@ -642,7 +642,7 @@ ngx_rtmp_dash_close_fragments(ngx_rtmp_session_t *s)
ngx_rtmp_dash_ctx_t *ctx;
ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_dash_module);
if (!ctx->opened) {
if (ctx == NULL || !ctx->opened) {
return NGX_OK;
}