From: Jaroslav Kysela Date: Mon, 6 Jul 2015 20:09:32 +0000 (+0200) Subject: webui: streaming - optimization for previous patch, fixes #2999 X-Git-Tag: v4.2.1~2184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecbb176539ef1f9350be4fcc9d0067dbb9af3ea3;p=thirdparty%2Ftvheadend.git webui: streaming - optimization for previous patch, fixes #2999 --- diff --git a/src/webui/webui.c b/src/webui/webui.c index c1a6bf747..e677ee402 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -275,6 +275,12 @@ http_stream_run(http_connection_t *hc, profile_chain_t *prch, lastpkt = dispatch_clock; ptimeout = prch->prch_pro ? prch->prch_pro->pro_timeout : 5; + if (hc->hc_no_output) { + pthread_mutex_lock(&sq->sq_mutex); + sq->sq_maxsize = 100000; + pthread_mutex_unlock(&sq->sq_mutex); + } + while(!hc->hc_shutdown && run && tvheadend_running) { pthread_mutex_lock(&sq->sq_mutex); sm = TAILQ_FIRST(&sq->sq_queue);