From: Jaroslav Kysela Date: Sun, 5 Oct 2014 14:27:02 +0000 (+0200) Subject: capmt: another quick mutex fix X-Git-Tag: v4.1~1125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e00c6ff975360457edc2f147e525325f6cbca81b;p=thirdparty%2Ftvheadend.git capmt: another quick mutex fix --- diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index b499cf3d8..6236a51a0 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -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); }