@@ -150,6 +150,13 @@ static ngx_command_t ngx_rtmp_core_commands[] = {
150
150
offsetof(ngx_rtmp_core_srv_conf_t , publish_time_fix ),
151
151
NULL },
152
152
153
+ { ngx_string ("buflen" ),
154
+ NGX_RTMP_MAIN_CONF |NGX_RTMP_SRV_CONF |NGX_CONF_TAKE1 ,
155
+ ngx_conf_set_msec_slot ,
156
+ NGX_RTMP_SRV_CONF_OFFSET ,
157
+ offsetof(ngx_rtmp_core_srv_conf_t , buflen ),
158
+ NULL },
159
+
153
160
ngx_null_command
154
161
};
155
162
@@ -240,6 +247,7 @@ ngx_rtmp_core_create_srv_conf(ngx_conf_t *cf)
240
247
conf -> out_cork = NGX_CONF_UNSET_SIZE ;
241
248
conf -> play_time_fix = NGX_CONF_UNSET ;
242
249
conf -> publish_time_fix = NGX_CONF_UNSET ;
250
+ conf -> buflen = NGX_CONF_UNSET_MSEC ;
243
251
conf -> busy = NGX_CONF_UNSET ;
244
252
245
253
return conf ;
@@ -267,6 +275,7 @@ ngx_rtmp_core_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
267
275
conf -> out_queue / 8 );
268
276
ngx_conf_merge_value (conf -> play_time_fix , prev -> play_time_fix , 1 );
269
277
ngx_conf_merge_value (conf -> publish_time_fix , prev -> publish_time_fix , 1 );
278
+ ngx_conf_merge_msec_value (conf -> buflen , prev -> buflen , 1000 );
270
279
ngx_conf_merge_value (conf -> busy , prev -> busy , 0 );
271
280
272
281
if (prev -> pool == NULL ) {
0 commit comments