From 17188b25eb07233f9663bb66b1ff128aaa15791c Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Sat, 12 May 2012 15:13:56 +0400 Subject: [PATCH] fixed changing chunk size: input stream reset added --- ngx_rtmp_handler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ngx_rtmp_handler.c b/ngx_rtmp_handler.c index acb8ed5..a398583 100644 --- a/ngx_rtmp_handler.c +++ b/ngx_rtmp_handler.c @@ -750,6 +750,7 @@ ngx_rtmp_set_chunk_size(ngx_rtmp_session_t *s, ngx_uint_t size) * we can simply ignore it */ li = s->in_streams[n].in; if (li == NULL || li->next == NULL) { + s->in_streams[n].in = NULL; continue; } /* move from last to the first */