summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/rmd_cache_frame.c
diff options
context:
space:
mode:
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