]> 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:52:27 +0000 (16:52 +0100)
src/htsp_server.c

index 04b04c3c29ebec881bb9ab9957630d6feae6c0ab..49af61b17e2a7722a771d2c95199a9472338be09 100644 (file)
@@ -3420,6 +3420,8 @@ htsp_serve(int fd, void **opaque, struct sockaddr_storage *source,
   htsp.htsp_peer = source;
   htsp.htsp_writer_run = 1;
 
+  tvh_mutex_init(&htsp.htsp_out_mutex, NULL);
+
   LIST_INSERT_HEAD(&htsp_connections, &htsp, htsp_link);
   tvh_mutex_unlock(&global_lock);