From: Andre Noll Date: Mon, 2 Jul 2012 06:38:00 +0000 (+0200) Subject: fade: Fix sleep time in snooze mode. X-Git-Tag: v0.4.11~3 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=e55d09a5899d5948fe5c4fec42ab53d1c1f924b4 fade: Fix sleep time in snooze mode. We slept for the wrong amount of seconds. --- diff --git a/fade.c b/fade.c index d5422598..92aec1e7 100644 --- a/fade.c +++ b/fade.c @@ -288,11 +288,9 @@ static int sweet_dreams(void) static int snooze(void) { int ret; - unsigned sleep_time; if (conf.so_time_arg <= 0) return 1; - sleep_time = conf.so_time_arg; if (open_and_get_mixer_channel() < conf.so_vol_arg) ret = open_and_set_mixer_channel(conf.so_vol_arg); else @@ -301,7 +299,7 @@ static int snooze(void) return ret; client_cmd("pause"); PARA_NOTICE_LOG("%d seconds snooze time...\n", conf.snooze_time_arg); - sleep(sleep_time); + sleep(conf.snooze_time_arg); client_cmd("play"); return fade(conf.si_vol_arg, conf.si_time_arg); }