From: Jaroslav Kysela Date: Tue, 17 Jun 2014 14:00:11 +0000 (+0200) Subject: capmt: fix another mutex deadlock fix X-Git-Tag: v4.1~1894 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ff88bc4191b60c9b5db00013dd36eba35e65fcd;p=thirdparty%2Ftvheadend.git capmt: fix another mutex deadlock fix --- diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index eb4e4ffc3..e2c36c0c8 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -1536,10 +1536,10 @@ capmt_caid_change(th_descrambler_t *td) } } + pthread_mutex_unlock(&capmt->capmt_mutex); + if (change) capmt_notify_server(capmt, ct); - - pthread_mutex_unlock(&capmt->capmt_mutex); } static void