Code

Dont run mpc_update() directly after a volume change command.
authorKalle Wallin <kaw@linux.se>
Tue, 23 Mar 2004 20:23:42 +0000 (20:23 +0000)
committerKalle Wallin <kaw@linux.se>
Tue, 23 Mar 2004 20:23:42 +0000 (20:23 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@419 09075e82-0dd4-0310-85a5-a0d7c8717e4f

main.c

diff --git a/main.c b/main.c
index 7bd80c5dd24d699aa027180cb67a06ee4babdaad..4e420b75d4cc4c1be2ada8f86193092be908461e 100644 (file)
--- 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 )