From 8a725405c8014235bf2b5b5010bfcb1003d324aa Mon Sep 17 00:00:00 2001 From: enselic Date: Sat, 13 Sep 2008 13:28:47 +0000 Subject: include/rmdtypes.h include/recordmydesktop.h: Continue the globals killing spree by putting pause_mutex and time_mutex in ProgData instead of having them as globals. src/get_frame.c src/rmd_timer.c src/cache_audio.c src/cache_frame.c src/capture_sound.c src/initialize_data.c src/encode_image_buffer.c src/encode_sound_buffer.c: Adapt. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@532 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/initialize_data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recordmydesktop/src/initialize_data.c') diff --git a/recordmydesktop/src/initialize_data.c b/recordmydesktop/src/initialize_data.c index 56e3beb..1e206ae 100644 --- a/recordmydesktop/src/initialize_data.c +++ b/recordmydesktop/src/initialize_data.c @@ -97,8 +97,8 @@ int InitializeData(ProgData *pdata, pthread_mutex_init(&pdata->vorbis_lib_mutex,NULL); pthread_mutex_init(&pdata->libogg_mutex,NULL); pthread_mutex_init(&pdata->yuv_mutex,NULL); - pthread_mutex_init(&pause_mutex,NULL); - pthread_mutex_init(&time_mutex,NULL); + pthread_mutex_init(&pdata->pause_mutex, NULL); + pthread_mutex_init(&pdata->time_mutex, NULL); pthread_cond_init(&pdata->time_cond,NULL); pthread_cond_init(&pdata->pause_cond,NULL); pthread_cond_init(&pdata->image_buffer_ready,NULL); -- cgit v1.2.3