aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-23 20:23:42 +0000
committerKalle Wallin <kaw@linux.se>2004-03-23 20:23:42 +0000
commitf839072214f7f4f3cb7723462cc9557e0ccbbad1 (patch)
treedc94aaf3875a68cdd4179fc514ff518ba02aca84
parentc7444417a1ed04aee6144ca4754ed758dcb0c208 (diff)
downloadmpd-f839072214f7f4f3cb7723462cc9557e0ccbbad1.tar.gz
mpd-f839072214f7f4f3cb7723462cc9557e0ccbbad1.tar.xz
mpd-f839072214f7f4f3cb7723462cc9557e0ccbbad1.zip
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
Diffstat (limited to '')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 7bd80c5dd..4e420b75d 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 )