Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: streaming - optimization for previous patch, fixes #2999
  • Loading branch information
perexg committed Jul 6, 2015
1 parent 5905158 commit ecbb176
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/webui/webui.c
Expand Up @@ -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);
Expand Down

0 comments on commit ecbb176

Please sign in to comment.