From f839072214f7f4f3cb7723462cc9557e0ccbbad1 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Tue, 23 Mar 2004 20:23:42 +0000 Subject: [PATCH] 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 --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ) -- 2.30.2