From: Luis Alves Date: Sun, 9 Dec 2018 11:19:05 +0000 (+0000) Subject: htsp_server: init htsp_out_mutex X-Git-Tag: v4.2.8~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44ac78d262278b603d1f99d386463200ab5b9eb6;p=thirdparty%2Ftvheadend.git htsp_server: init htsp_out_mutex --- diff --git a/src/htsp_server.c b/src/htsp_server.c index 9ee8d01a9..594c1561e 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -3362,6 +3362,8 @@ htsp_serve(int fd, void **opaque, struct sockaddr_storage *source, htsp.htsp_peer = source; htsp.htsp_writer_run = 1; + pthread_mutex_init(&htsp.htsp_out_mutex, NULL); + LIST_INSERT_HEAD(&htsp_connections, &htsp, htsp_link); pthread_mutex_unlock(&global_lock);