From ac1b77aa39c0568ed1ca5437e307c16c56b3d396 Mon Sep 17 00:00:00 2001 From: winshining Date: Thu, 1 Mar 2018 04:12:23 +0800 Subject: [PATCH] [misc] update README files and recover some codes. --- README.CN.md | 2 +- README.md | 2 +- ngx_rtmp_gop_cache_module.c | 8 -------- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/README.CN.md b/README.CN.md index 939083f..f8975b7 100644 --- a/README.CN.md +++ b/README.CN.md @@ -182,7 +182,7 @@ } rtmp_auto_push on; #Windows不支持 - rtmp_auto_push_reconnect 1s; + rtmp_auto_push_reconnect 1s; #Windows不支持 rtmp_socket_dir /tmp; #Windows不支持 rtmp { diff --git a/README.md b/README.md index 435df54..7e26e62 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ Since some players don't support HTTP chunked transmission, it's better **NOT** } rtmp_auto_push on; #not supported by Windows - rtmp_auto_push_reconnect 1s; + rtmp_auto_push_reconnect 1s; #not supported by Windows rtmp_socket_dir /tmp; #not supported by Windows rtmp { diff --git a/ngx_rtmp_gop_cache_module.c b/ngx_rtmp_gop_cache_module.c index cd784f9..19bf0d7 100644 --- a/ngx_rtmp_gop_cache_module.c +++ b/ngx_rtmp_gop_cache_module.c @@ -628,14 +628,6 @@ ngx_rtmp_gop_cache_send(ngx_rtmp_session_t *s) } for (cache = gctx->cache_head; cache; cache = cache->next) { - /** - * send only one GOP to decrease probability of - * 'TCP Window Full' which leads to playback lag - **/ - if (gctx->gop_cache_count == 2 && cache->next) { - continue; - } - if (ctx->protocol == NGX_RTMP_PROTOCOL_HTTP) { r = s->data; if (r == NULL || (r->connection && r->connection->destroyed)) {