]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
capmt: fix another mutex deadlock fix
authorJaroslav Kysela <perex@perex.cz>
Tue, 17 Jun 2014 14:00:11 +0000 (16:00 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 17 Jun 2014 14:00:11 +0000 (16:00 +0200)
src/descrambler/capmt.c

index eb4e4ffc3cf4cf9f0c4387355e392bba34613191..e2c36c0c82ec3cd2abb923b2f04c63eb195f47e0 100644 (file)
@@ -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