]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
capmt: another quick mutex fix
authorJaroslav Kysela <perex@perex.cz>
Sun, 5 Oct 2014 14:27:02 +0000 (16:27 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 5 Oct 2014 14:27:02 +0000 (16:27 +0200)
src/descrambler/capmt.c

index b499cf3d898d25fd9f002344f4ebe1747caca4f3..6236a51a073908899e45f814ff1d02b8bf626a38 100644 (file)
@@ -1506,7 +1506,7 @@ capmt_thread(void *aux)
 
     tvhlog(LOG_INFO, "capmt", "%s: Automatic reconnection attempt in in %d seconds", idnode_get_title(&capmt->cac_id), d);
 
-    pthread_cond_timedwait(&capmt->capmt_cond, &global_lock, &ts);
+    pthread_cond_timedwait(&capmt->capmt_cond, &capmt->capmt_mutex, &ts);
 
     pthread_mutex_unlock(&capmt->capmt_mutex);
   }