]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp_server: init htsp_out_mutex
authorLuis Alves <ljalvs@gmail.com>
Sun, 9 Dec 2018 11:19:05 +0000 (11:19 +0000)
committerJaroslav Kysela <perex@perex.cz>
Sun, 9 Dec 2018 15:54:58 +0000 (16:54 +0100)
src/htsp_server.c

index 9ee8d01a9e1c1e35355b4c7466511692a1c1a224..594c1561efbc1c870a711d9a8a10f5644562bad3 100644 (file)
@@ -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);