summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/initialize_data.c
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2008-02-11 10:28:03 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2008-02-11 10:28:03 +0000
commit26f59efe2c94581d822ce7a0a707a75035b7d046 (patch)
treec601628f4987284329e31436eee9f6ff6a043169 /recordmydesktop/src/initialize_data.c
parentd026b9ec4798582d21dab0f384fbe77b809b7567 (diff)
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
Diffstat (limited to 'recordmydesktop/src/initialize_data.c')
-rw-r--r--recordmydesktop/src/initialize_data.c6
1 files changed, 2 insertions, 4 deletions
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;
© All Rights Reserved