From 26f59efe2c94581d822ce7a0a707a75035b7d046 Mon Sep 17 00:00:00 2001 From: iovar Date: Mon, 11 Feb 2008 10:28:03 +0000 Subject: src/get_frame.c: added calls to InitEventsPolling and EventLoop. Now damage events are received and processed synchronously, before each frame capture. src/initialize_data.c: removed initalization of some removed members (dual recy roots ahd their mutexes) src/poll_events.c: Broken previous/ thread/func (PollEvents) to InitEventsPolling and EventLoop, which are called from GetFrame. src/rmdthreads.c: removed initalization/end of poll_events thread, as well as hack with extra window, to end that thread. src/rmd_timer.c: time_cond is broadcasted ecery time now (nnedeed with new changes) git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@490 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/initialize_data.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'recordmydesktop/src/initialize_data.c') diff --git a/recordmydesktop/src/initialize_data.c b/recordmydesktop/src/initialize_data.c index 2c2dad1..0b2d929 100644 --- a/recordmydesktop/src/initialize_data.c +++ b/recordmydesktop/src/initialize_data.c @@ -62,9 +62,7 @@ int InitializeData(ProgData *pdata, pdata->dummy_p_size=0; - pdata->rect_root[0]=pdata->rect_root[1]=NULL; - pthread_mutex_init(&pdata->list_mutex[0],NULL); - pthread_mutex_init(&pdata->list_mutex[1],NULL); + pdata->rect_root=NULL; pthread_mutex_init(&pdata->sound_buffer_mutex,NULL); pthread_mutex_init(&pdata->snd_buff_ready_mutex,NULL); pthread_mutex_init(&pdata->img_buff_ready_mutex,NULL); @@ -82,7 +80,7 @@ int InitializeData(ProgData *pdata, pthread_cond_init(&pdata->theora_lib_clean,NULL); pthread_cond_init(&pdata->vorbis_lib_clean,NULL); pdata->th_encoding_clean=pdata->v_encoding_clean=1; - pdata->list_selector=Paused=Aborted=pdata->avd=0; + Paused=Aborted=pdata->avd=0; pdata->sound_buffer=NULL; pdata->running=1; time_cond=&pdata->time_cond; -- cgit v1.2.1