summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/rmd_cache_frame.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_cache_frame.c
parent3e5963c755fea09b2a28aa1398f4a92c835a2c69 (diff)
*: more unfucking synchronization
Diffstat (limited to 'recordmydesktop/src/rmd_cache_frame.c')
-rw-r--r--recordmydesktop/src/rmd_cache_frame.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/recordmydesktop/src/rmd_cache_frame.c b/recordmydesktop/src/rmd_cache_frame.c
index 8d6c452..6014aa0 100644
--- a/recordmydesktop/src/rmd_cache_frame.c
+++ b/recordmydesktop/src/rmd_cache_frame.c
@@ -123,12 +123,12 @@ void *rmdCacheImageBuffer(ProgData *pdata) {
ynum = unum = vnum = 0;
- pthread_mutex_lock(&pdata->time_mutex);
+ pthread_mutex_lock(&pdata->img_buff_ready_mutex);
while (pdata->running && capture_frameno >= pdata->capture_frameno)
- pthread_cond_wait(&pdata->time_cond, &pdata->time_mutex);
+ pthread_cond_wait(&pdata->image_buffer_ready, &pdata->img_buff_ready_mutex);
capture_frameno = pdata->capture_frameno;
- pthread_mutex_unlock(&pdata->time_mutex);
+ pthread_mutex_unlock(&pdata->img_buff_ready_mutex);
pthread_mutex_lock(&pdata->pause_mutex);
while (pdata->paused)
© All Rights Reserved