From 4aad6bcefff91baceb2c24f23fbca96f1c96e748 Mon Sep 17 00:00:00 2001 From: iovar Date: Wed, 14 Nov 2007 15:17:17 +0000 Subject: 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 --- recordmydesktop/src/register_callbacks.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'recordmydesktop/src/register_callbacks.c') 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 -- cgit v1.2.3