]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: streaming - optimization for previous patch, fixes #2999
authorJaroslav Kysela <perex@perex.cz>
Mon, 6 Jul 2015 20:09:32 +0000 (22:09 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 6 Jul 2015 20:09:32 +0000 (22:09 +0200)
src/webui/webui.c

index c1a6bf747fd87c125154809d63b31560e29009cb..e677ee402b8f264652a73a78c43b57717eb1215c 100644 (file)
@@ -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);