diff options
Diffstat (limited to 'recordmydesktop/src')
-rw-r--r-- | recordmydesktop/src/capture_sound.c | 4 | ||||
-rw-r--r-- | recordmydesktop/src/encode_cache.c | 2 | ||||
-rw-r--r-- | recordmydesktop/src/initialize_data.c | 8 | ||||
-rw-r--r-- | recordmydesktop/src/register_callbacks.c | 6 | ||||
-rw-r--r-- | recordmydesktop/src/rmd_jack.c | 2 | ||||
-rw-r--r-- | recordmydesktop/src/rmd_rescue.c | 4 | ||||
-rw-r--r-- | recordmydesktop/src/rmd_timer.c | 6 |
7 files changed, 16 insertions, 16 deletions
diff --git a/recordmydesktop/src/capture_sound.c b/recordmydesktop/src/capture_sound.c index f9fb295..71424f9 100644 --- a/recordmydesktop/src/capture_sound.c +++ b/recordmydesktop/src/capture_sound.c @@ -65,7 +65,7 @@ void *CaptureSound(ProgData *pdata){ ); if(pdata->sound_handle==NULL){ fprintf(stderr,"Couldn't reopen sound device.Exiting\n"); - pdata->running=0; + pdata->running = FALSE; errno=3; pthread_exit(&errno); } @@ -81,7 +81,7 @@ void *CaptureSound(ProgData *pdata){ pdata->args.frequency); if(pdata->sound_handle<0){ fprintf(stderr,"Couldn't reopen sound device.Exiting\n"); - pdata->running=0; + pdata->running = FALSE; errno=3; pthread_exit(&errno); } diff --git a/recordmydesktop/src/encode_cache.c b/recordmydesktop/src/encode_cache.c index 73b79c6..1907d98 100644 --- a/recordmydesktop/src/encode_cache.c +++ b/recordmydesktop/src/encode_cache.c @@ -37,7 +37,7 @@ void EncodeCache(ProgData *pdata){ " (resuming will not be possible, but\n" "any portion of the video, which is already encoded won't be deleted).\n" "Please wait...\n"); - pdata->running=1; + pdata->running = TRUE; InitEncoder(pdata,pdata->enc_data,1); //load encoding and flushing threads if(!pdata->args.nosound){ diff --git a/recordmydesktop/src/initialize_data.c b/recordmydesktop/src/initialize_data.c index a10205e..2fbece0 100644 --- a/recordmydesktop/src/initialize_data.c +++ b/recordmydesktop/src/initialize_data.c @@ -109,10 +109,10 @@ int InitializeData(ProgData *pdata, pdata->th_encoding_clean=pdata->v_encoding_clean=1; pdata->avd=0; pdata->sound_buffer=NULL; - pdata->running=1; - pdata->paused=0; - pdata->aborted=0; - pdata->pause_state_changed=0; + pdata->running = TRUE; + pdata->paused = FALSE; + pdata->aborted = FALSE; + pdata->pause_state_changed = FALSE; time_cond=&pdata->time_cond; pause_cond=&pdata->pause_cond; diff --git a/recordmydesktop/src/register_callbacks.c b/recordmydesktop/src/register_callbacks.c index 3371673..044fefc 100644 --- a/recordmydesktop/src/register_callbacks.c +++ b/recordmydesktop/src/register_callbacks.c @@ -40,17 +40,17 @@ static int *pdata_pause_state_changed = NULL; static void SetPaused(int signum) { - *pdata_pause_state_changed = 1; + *pdata_pause_state_changed = TRUE; } static void SetRunning(int signum) { if (!*pdata_paused) { - *pdata_running = 0; + *pdata_running = FALSE; if (signum == SIGABRT) { - *pdata_aborted = 1; + *pdata_aborted = TRUE; } } } diff --git a/recordmydesktop/src/rmd_jack.c b/recordmydesktop/src/rmd_jack.c index e15042e..6e5544e 100644 --- a/recordmydesktop/src/rmd_jack.c +++ b/recordmydesktop/src/rmd_jack.c @@ -210,7 +210,7 @@ static int LoadJackLib(void *jack_lib_handle) { static void JackShutdown(void *jdata_t) { JackData *jdata = (JackData *)jdata_t; - jdata->pdata->running = 0; + jdata->pdata->running = FALSE; fprintf (stderr, "JACK shutdown\n"); } diff --git a/recordmydesktop/src/rmd_rescue.c b/recordmydesktop/src/rmd_rescue.c index fbba518..ebd314e 100644 --- a/recordmydesktop/src/rmd_rescue.c +++ b/recordmydesktop/src/rmd_rescue.c @@ -110,8 +110,8 @@ int rmdRescue(const char *path){ pdata.th_encoding_clean=pdata.v_encoding_clean=1; pdata.avd=0; pdata.sound_buffer=NULL; - pdata.running=1; - pdata.aborted=0; + pdata.running = TRUE; + pdata.aborted = FALSE; RegisterCallbacks(&pdata); fprintf(stderr,"Restoring %s!!!\n",path); diff --git a/recordmydesktop/src/rmd_timer.c b/recordmydesktop/src/rmd_timer.c index 2430156..2cd3723 100644 --- a/recordmydesktop/src/rmd_timer.c +++ b/recordmydesktop/src/rmd_timer.c @@ -44,14 +44,14 @@ void *rmdTimer(ProgData *pdata){ while(pdata->timer_alive){ if (pdata->pause_state_changed) { - pdata->pause_state_changed = 0; + pdata->pause_state_changed = FALSE; if (!pdata->paused) { - pdata->paused = 1; + pdata->paused = TRUE; fprintf(stderr,"STATE:PAUSED\n");fflush(stderr); } else{ - pdata->paused = 0; + pdata->paused = FALSE; fprintf(stderr,"STATE:RECORDING\n");fflush(stderr); pthread_mutex_lock(&pause_mutex); pthread_cond_broadcast(pause_cond); |