disabled exec for auto-pushed connection

This commit is contained in:
Roman Arutyunyan 2012-07-22 09:53:11 +04:00
parent 5070ff151a
commit 07cd2644c8

View file

@ -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));