diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-11-14 15:17:17 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-11-14 15:17:17 +0000 |
commit | 4aad6bcefff91baceb2c24f23fbca96f1c96e748 (patch) | |
tree | 8b92a5453c086c1b3708e9cf94bfd99534ef79aa | |
parent | 6407809f57993199685ee9f1b83c4be500274c74 (diff) |
src/encode_cache.c,src/register_callbacks.c :added state change messages
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@431 f606c939-3180-4ac9-a4b8-4b8779d57d0a
-rw-r--r-- | recordmydesktop/src/encode_cache.c | 2 | ||||
-rw-r--r-- | recordmydesktop/src/register_callbacks.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/recordmydesktop/src/encode_cache.c b/recordmydesktop/src/encode_cache.c index 0113b59..95be8c4 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,"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/register_callbacks.c b/recordmydesktop/src/register_callbacks.c index 2c5a8a3..545c576 100644 --- a/recordmydesktop/src/register_callbacks.c +++ b/recordmydesktop/src/register_callbacks.c @@ -47,10 +47,13 @@ void SetExpired(int signum){ } void SetPaused(int signum){ - if(!Paused) + if(!Paused){ Paused=1; + fprintf(stderr,"STATE:PAUSED\n"); + } else{ Paused=0; + fprintf(stderr,"STATE:RECORDING\n"); /*FIXME */ //This is not safe. //cond_var signaling must move away from signal handlers |