isidle and isstopped state machine functions separated

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>