Skip to content

Commit 018daa4

Browse files
committed
removed useless variables
1 parent 6a848ea commit 018daa4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

hls/ngx_rtmp_hls_module.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ static char * ngx_rtmp_hls_merge_app_conf(ngx_conf_t *cf,
2525

2626

2727
typedef struct {
28-
ngx_uint_t flags;
29-
3028
unsigned publishing:1;
3129
unsigned opened:1;
3230

@@ -60,8 +58,6 @@ typedef struct {
6058
ngx_uint_t nfrags;
6159
ngx_flag_t continuous;
6260
ngx_flag_t nodelete;
63-
ngx_rtmp_hls_ctx_t **ctx;
64-
ngx_uint_t nbuckets;
6561
ngx_str_t path;
6662
} ngx_rtmp_hls_app_conf_t;
6763

@@ -1160,7 +1156,6 @@ ngx_rtmp_hls_create_app_conf(ngx_conf_t *cf)
11601156
conf->continuous = NGX_CONF_UNSET;
11611157
conf->nodelete = NGX_CONF_UNSET;
11621158
conf->factor = NGX_CONF_UNSET;
1163-
conf->nbuckets = 1024;
11641159

11651160
return conf;
11661161
}
@@ -1182,12 +1177,6 @@ ngx_rtmp_hls_merge_app_conf(ngx_conf_t *cf, void *parent, void *child)
11821177
ngx_conf_merge_value(conf->nodelete, prev->nodelete, 0);
11831178
ngx_conf_merge_value(conf->factor, prev->factor, 2);
11841179

1185-
conf->ctx = ngx_pcalloc(cf->pool, sizeof(ngx_rtmp_hls_ctx_t *) *
1186-
conf->nbuckets);
1187-
if (conf->ctx == NULL) {
1188-
return NGX_CONF_ERROR;
1189-
}
1190-
11911180
if (conf->fraglen) {
11921181
conf->winfrags = conf->playlen / conf->fraglen;
11931182
conf->nfrags = conf->winfrags * conf->factor;

0 commit comments

Comments
 (0)