From f0f64460fab4d8d96e49dfe3e056b57d22cfe5ca Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 11 Jul 2020 12:11:14 -0700 Subject: *: more unfucking synchronization --- recordmydesktop/src/rmd_load_cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'recordmydesktop/src/rmd_load_cache.c') diff --git a/recordmydesktop/src/rmd_load_cache.c b/recordmydesktop/src/rmd_load_cache.c index 297b1a0..09e3138 100644 --- a/recordmydesktop/src/rmd_load_cache.c +++ b/recordmydesktop/src/rmd_load_cache.c @@ -311,11 +311,13 @@ void *rmdLoadCache(ProgData *pdata) { } } - pdata->v_encoding_clean = pdata->th_encoding_clean = 1; pthread_mutex_lock(&pdata->theora_lib_mutex); + pdata->th_encoding_clean = 1; pthread_cond_signal(&pdata->theora_lib_clean); pthread_mutex_unlock(&pdata->theora_lib_mutex); + pthread_mutex_lock(&pdata->vorbis_lib_mutex); + pdata->v_encoding_clean = 1; pthread_cond_signal(&pdata->vorbis_lib_clean); pthread_mutex_unlock(&pdata->vorbis_lib_mutex); fprintf(stdout,"\n"); -- cgit v1.2.3