From 8f346c1f0dedde55cd21cc76c1c45fb60fc51c86 Mon Sep 17 00:00:00 2001 From: iovar Date: Thu, 6 Dec 2007 18:42:45 +0000 Subject: encode_cache.c, rmd_timer.c: fflush(stderr) on state changes git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@460 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/encode_cache.c | 2 +- recordmydesktop/src/rmd_timer.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/recordmydesktop/src/encode_cache.c b/recordmydesktop/src/encode_cache.c index 95be8c4..05989e2 100644 --- a/recordmydesktop/src/encode_cache.c +++ b/recordmydesktop/src/encode_cache.c @@ -31,7 +31,7 @@ void EncodeCache(ProgData *pdata){ pthread_t flush_to_ogg_t, load_cache_t; - fprintf(stderr,"STATE:ENCODING\n"); + fprintf(stderr,"STATE:ENCODING\n");fflush(stderr); fprintf(stderr,"Encoding started!\nThis may take several minutes.\n" "Pressing Ctrl-C will cancel the procedure" " (resuming will not be possible, but\n" diff --git a/recordmydesktop/src/rmd_timer.c b/recordmydesktop/src/rmd_timer.c index da26f18..a6c7568 100644 --- a/recordmydesktop/src/rmd_timer.c +++ b/recordmydesktop/src/rmd_timer.c @@ -47,11 +47,11 @@ void *rmdTimer(ProgData *pdata){ if(!Paused){ Paused=1; - fprintf(stderr,"STATE:PAUSED\n"); + fprintf(stderr,"STATE:PAUSED\n");fflush(stderr); } else{ Paused=0; - fprintf(stderr,"STATE:RECORDING\n"); + fprintf(stderr,"STATE:RECORDING\n");fflush(stderr); pthread_mutex_lock(&pause_mutex); pthread_cond_broadcast(pause_cond); pthread_mutex_unlock(&pause_mutex); -- cgit v1.2.3