From 07cd2644c8757cf7cf060463134de104eb60aa7b Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Sun, 22 Jul 2012 09:53:11 +0400 Subject: [PATCH] disabled exec for auto-pushed connection --- ngx_rtmp_exec_module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ngx_rtmp_exec_module.c b/ngx_rtmp_exec_module.c index 0a2fdab..84f94a6 100644 --- a/ngx_rtmp_exec_module.c +++ b/ngx_rtmp_exec_module.c @@ -464,6 +464,10 @@ ngx_rtmp_exec_publish(ngx_rtmp_session_t *s, ngx_rtmp_publish_t *v) goto next; } + if (s->auto_pushed) { + goto next; + } + ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_exec_module); if (ctx == NULL) { ctx = ngx_pcalloc(s->connection->pool, sizeof(ngx_rtmp_exec_ctx_t));