Skip to content

Commit 9694335

Browse files
committed
[dev] refactor the calling order of modules (developing).
1 parent c797c71 commit 9694335

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ngx_http_flv_live_module.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,11 @@ ngx_http_flv_live_init_handlers(ngx_cycle_t *cycle)
336336
h = ngx_array_push(&cmcf->events[NGX_HTTP_FLV_LIVE_REQUEST]);
337337
*h = ngx_http_flv_live_request;
338338

339-
next_play = ngx_rtmp_play;
340-
ngx_rtmp_play = ngx_http_flv_live_play;
339+
next_play = ngx_http_flv_live_play;
340+
next_close_stream = ngx_http_flv_live_close_stream;
341341

342-
next_close_stream = ngx_rtmp_close_stream;
343-
ngx_rtmp_close_stream = ngx_http_flv_live_close_stream;
342+
http_flv_live_next_play = NULL;
343+
http_flv_live_next_close_stream = NULL;
344344

345345
return NGX_OK;
346346
}

0 commit comments

Comments
 (0)