Skip to content

Commit 671c353

Browse files
committed
[fix] fixed a compilation error on some distros (#174).
1 parent 86af0c8 commit 671c353

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ngx_http_flv_live_module.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ static ngx_rtmp_play_pt next_play;
1414
static ngx_rtmp_close_stream_pt next_close_stream;
1515

1616

17+
ngx_rtmp_play_pt http_flv_live_next_play;
18+
ngx_rtmp_close_stream_pt http_flv_live_next_close_stream;
19+
20+
1721
static ngx_int_t ngx_http_flv_live_init(ngx_conf_t *cf);
1822
static void *ngx_http_flv_live_create_loc_conf(ngx_conf_t *cf);
1923
static char *ngx_http_flv_live_merge_loc_conf(ngx_conf_t *cf,

ngx_http_flv_live_module.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
extern ngx_module_t ngx_rtmp_module;
2222

2323

24-
ngx_rtmp_play_pt http_flv_live_next_play;
25-
ngx_rtmp_close_stream_pt http_flv_live_next_close_stream;
24+
extern ngx_rtmp_play_pt http_flv_live_next_play;
25+
extern ngx_rtmp_close_stream_pt http_flv_live_next_close_stream;
2626

2727

2828
#define ngx_rtmp_cycle_get_module_main_conf(cycle, module) \

0 commit comments

Comments
 (0)