diff options
Diffstat (limited to 'recordmydesktop/src')
-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 |