From 5070ff151a7605a3a9a065496f6a87b3a4eabb5b Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Sun, 22 Jul 2012 09:48:25 +0400 Subject: [PATCH] disabled HLS for auto-pushed connection --- hls/ngx_rtmp_hls_module.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hls/ngx_rtmp_hls_module.c b/hls/ngx_rtmp_hls_module.c index 86dee4f..99baa5c 100644 --- a/hls/ngx_rtmp_hls_module.c +++ b/hls/ngx_rtmp_hls_module.c @@ -741,6 +741,11 @@ ngx_rtmp_hls_publish(ngx_rtmp_session_t *s, ngx_rtmp_publish_t *v) if (hacf == NULL || !hacf->hls || hacf->path.len == 0) { goto next; } + + if (s->auto_pushed) { + goto next; + } + ngx_log_debug2(NGX_LOG_DEBUG_RTMP, s->connection->log, 0, "hls: publish: name='%s' type='%s'", v->name, v->type);