From 966d8ccca3e25d290603b935f17ebc47aba6e890 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 16 Aug 2016 21:29:05 +0200 Subject: [PATCH] htsp: fix http api proxy (global_lock), fixes #3939 --- src/htsp_server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/htsp_server.c b/src/htsp_server.c index 8b3e4eaab..badd22292 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -1295,6 +1295,8 @@ htsp_method_api(htsp_connection_t *htsp, htsmsg_t *in) const char *remain; int r; + pthread_mutex_unlock(&global_lock); + args = htsmsg_get_map(in, "args"); remain = htsmsg_get_str(in, "path"); @@ -1325,6 +1327,8 @@ htsp_method_api(htsp_connection_t *htsp, htsmsg_t *in) } htsmsg_destroy(args2); + + pthread_mutex_lock(&global_lock); return ret; } -- 2.47.3