summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/rmd_load_cache.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-07-11 12:11:14 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-07-11 13:36:42 -0700
commitf0f64460fab4d8d96e49dfe3e056b57d22cfe5ca (patch)
treeb0bee34e6f5c2a03073da5991f2d4d850400c436 /recordmydesktop/src/rmd_load_cache.c
parent3e5963c755fea09b2a28aa1398f4a92c835a2c69 (diff)
*: more unfucking synchronization
Diffstat (limited to 'recordmydesktop/src/rmd_load_cache.c')
-rw-r--r--recordmydesktop/src/rmd_load_cache.c4
1 files changed, 3 insertions, 1 deletions
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");
© All Rights Reserved