From: Kalle Wallin Date: Tue, 23 Mar 2004 20:23:42 +0000 (+0000) Subject: Dont run mpc_update() directly after a volume change command. X-Git-Tag: v0.12_alpha1~667 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f839072214f7f4f3cb7723462cc9557e0ccbbad1;p=ncmpc.git Dont run mpc_update() directly after a volume change command. git-svn-id: https://svn.musicpd.org/ncmpc/trunk@419 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- diff --git a/main.c b/main.c index 7bd80c5..4e420b7 100644 --- a/main.c +++ b/main.c @@ -120,7 +120,10 @@ main(int argc, const char *argv[]) if( (cmd=get_keyboard_command()) != CMD_NONE ) { screen_cmd(mpc, cmd); - counter=0; + if( cmd==CMD_VOLUME_UP || cmd==CMD_VOLUME_DOWN) + counter=10; + else + counter=0; } } else if( options->reconnect )