diff options
author | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-09-14 07:27:50 +0000 |
---|---|---|
committer | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-09-14 07:27:50 +0000 |
commit | 172b458884bec3c8379c9951de96a9e3b21ca770 (patch) | |
tree | 2a3ff8050d65042f15dc63bcbfd1e4952f634870 /recordmydesktop/src/initialize_data.c | |
parent | c2da14838a03eb8450d06c0d0b95d38c9acb4964 (diff) |
src/recordmydesktop.h: Deleted. The last globals were migrated to
ProgData. recordmydesktop.h should actually never exist (as long as
rmd isn't e.g. a library) since recordmydesktop.c is the main()
program and it would be weird if other modules had a dependeny to it.
src/rmdtypes.h: Put the last globals in ProgData instead.
src/Makefile.am
src/cache_audio.c
src/cache_frame.c
src/capture_sound.c
src/encode_cache.c
src/encode_image_buffer.c
src/encode_sound_buffer.c
src/flush_to_ogg.c
src/get_frame.c
src/getzpixmap.c
src/init_encoder.c
src/initialize_data.c
src/load_cache.c
src/make_dummy_pointer.c
src/parseargs.c
src/queryextensions.c
src/recordmydesktop.c
src/register_callbacks.c
src/rmd_cache.c
src/rmd_jack.c
src/rmd_rescue.c
src/rmd_timer.c
src/setbrwindow.c
src/update_image.c
src/wm_check.c: Adapted.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@541 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/initialize_data.c')
-rw-r--r-- | recordmydesktop/src/initialize_data.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/recordmydesktop/src/initialize_data.c b/recordmydesktop/src/initialize_data.c index 4efda69..9356f6a 100644 --- a/recordmydesktop/src/initialize_data.c +++ b/recordmydesktop/src/initialize_data.c @@ -24,11 +24,12 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include "rmdtypes.h" + #include "block_utils.h" #include "init_encoder.h" #include "make_dummy_pointer.h" #include "opendev.h" -#include "recordmydesktop.h" #include "rmd_cache.h" #include "rmd_jack.h" #include "yuv_utils.h" @@ -54,8 +55,6 @@ int InitializeData(ProgData *pdata, EncData *enc_data, CacheData *cache_data){ int i; - //these are globals, look for them at the header - frames_total=frames_lost=encoder_busy=capture_busy=0; fprintf(stderr,"Initializing...\n"); MakeMatrices(); @@ -93,6 +92,10 @@ int InitializeData(ProgData *pdata, pdata->paused = FALSE; pdata->aborted = FALSE; pdata->pause_state_changed = FALSE; + pdata->frames_total = 0; + pdata->frames_lost = 0; + pdata->encoder_busy = 0; + pdata->capture_busy = 0; if(!pdata->args.nosound){ if(!pdata->args.use_jack){ |