From 29d2e46787bee6bc3a951734d40a215088d58692 Mon Sep 17 00:00:00 2001 From: iovar Date: Fri, 27 Oct 2006 15:19:15 +0000 Subject: image cache loading ,almost fuctional git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@123 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- rMD-exp/src/encode_image_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rMD-exp/src/encode_image_buffer.c') diff --git a/rMD-exp/src/encode_image_buffer.c b/rMD-exp/src/encode_image_buffer.c index 38a1d77..2718d0e 100644 --- a/rMD-exp/src/encode_image_buffer.c +++ b/rMD-exp/src/encode_image_buffer.c @@ -30,8 +30,8 @@ void *EncodeImageBuffer(void *pdata){ pthread_mutex_init(&pmut,NULL); pthread_mutex_init(&imut,NULL); while(((ProgData *)pdata)->running){ - encoder_busy=1; pthread_cond_wait(&((ProgData *)pdata)->image_buffer_ready,&imut); + encoder_busy=1; if(Paused) pthread_cond_wait(&((ProgData *)pdata)->pause_cond,&pmut);//this may not be needed pthread_mutex_lock(&((ProgData *)pdata)->yuv_mutex); -- cgit v1.2.3