Skip to content

Commit

Permalink
fix bug: crash without rtmp config
Browse files Browse the repository at this point in the history
  • Loading branch information
im-pingo committed Oct 28, 2019
1 parent 378cf0c commit 077869d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ngx_rtmp_oclp_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,10 @@ ngx_rtmp_oclp_init_process(ngx_cycle_t *cycle)
return NGX_OK;
}

if (ngx_rtmp_core_main_conf == NULL) {
return NGX_OK;
}

ctx = (ngx_rtmp_conf_ctx_t *) ngx_get_conf(cycle->conf_ctx,
ngx_rtmp_module);
omcf = (ngx_rtmp_oclp_main_conf_t *)
Expand Down

0 comments on commit 077869d

Please sign in to comment.