mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
implemented shared output chains
This commit is contained in:
@ -89,11 +89,11 @@ static ngx_command_t ngx_rtmp_core_commands[] = {
|
||||
offsetof(ngx_rtmp_core_srv_conf_t, chunk_size),
|
||||
NULL },
|
||||
|
||||
{ ngx_string("max_buf"),
|
||||
{ ngx_string("max_queue"),
|
||||
NGX_RTMP_MAIN_CONF|NGX_RTMP_SRV_CONF|NGX_CONF_TAKE1,
|
||||
ngx_conf_set_size_slot,
|
||||
NGX_RTMP_SRV_CONF_OFFSET,
|
||||
offsetof(ngx_rtmp_core_srv_conf_t, max_buf),
|
||||
offsetof(ngx_rtmp_core_srv_conf_t, max_queue),
|
||||
NULL },
|
||||
|
||||
{ ngx_string("max_message"),
|
||||
@ -199,7 +199,7 @@ ngx_rtmp_core_create_srv_conf(ngx_conf_t *cf)
|
||||
conf->max_streams = NGX_CONF_UNSET;
|
||||
conf->chunk_size = NGX_CONF_UNSET;
|
||||
conf->ack_window = NGX_CONF_UNSET;
|
||||
conf->max_buf = NGX_CONF_UNSET;
|
||||
conf->max_queue = NGX_CONF_UNSET;
|
||||
conf->max_message = NGX_CONF_UNSET;
|
||||
conf->play_time_fix = NGX_CONF_UNSET;
|
||||
conf->publish_time_fix = NGX_CONF_UNSET;
|
||||
@ -217,11 +217,11 @@ ngx_rtmp_core_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
|
||||
ngx_conf_merge_msec_value(conf->timeout, prev->timeout, 60000);
|
||||
|
||||
ngx_conf_merge_value(conf->so_keepalive, prev->so_keepalive, 0);
|
||||
ngx_conf_merge_value(conf->max_streams, prev->max_streams, 64);
|
||||
ngx_conf_merge_value(conf->max_streams, prev->max_streams, 16);
|
||||
ngx_conf_merge_value(conf->chunk_size, prev->chunk_size, 4096);
|
||||
ngx_conf_merge_uint_value(conf->ack_window, prev->ack_window, 5000000);
|
||||
ngx_conf_merge_size_value(conf->max_buf, prev->max_buf, 128 * 1024);
|
||||
ngx_conf_merge_size_value(conf->max_message, prev->max_message, 4 * 1024 * 1024);
|
||||
ngx_conf_merge_size_value(conf->max_queue, prev->max_queue, 256);
|
||||
ngx_conf_merge_size_value(conf->max_message, prev->max_message, 1 * 1024 * 1024);
|
||||
ngx_conf_merge_value(conf->play_time_fix, prev->play_time_fix, 1);
|
||||
ngx_conf_merge_value(conf->publish_time_fix, prev->publish_time_fix, 1);
|
||||
|
||||
|
Reference in New Issue
Block a user