diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-03-03 00:01:43 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-03-03 00:01:43 +0000 |
commit | ac2be0137459ad623a698363786a0763fef127fb (patch) | |
tree | a5aa2d44ca1abefe82374201c98585d58605cccd /src/player.c | |
parent | 4aec92fd6ec5d27eed7d5630a48341dde23b80bc (diff) | |
download | mpd-ac2be0137459ad623a698363786a0763fef127fb.tar.gz mpd-ac2be0137459ad623a698363786a0763fef127fb.tar.xz mpd-ac2be0137459ad623a698363786a0763fef127fb.zip |
fix gcc-2.95 compilation errors
git-svn-id: https://svn.musicpd.org/mpd/trunk@172 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/player.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/player.c b/src/player.c index e42acca18..e2212ae30 100644 --- a/src/player.c +++ b/src/player.c @@ -402,17 +402,19 @@ float getPlayerCrossFade() { } void setPlayerCrossFade(float crossFadeInSeconds) { + PlayerControl * pc; if(crossFadeInSeconds<0) crossFadeInSeconds = 0; - PlayerControl * pc = &(getPlayerData()->playerControl); + pc = &(getPlayerData()->playerControl); pc->crossFade = crossFadeInSeconds; } void setPlayerSoftwareVolume(int volume) { + PlayerControl * pc; volume = (volume>100) ? 100 : (volume<0 ? 0 : volume); - PlayerControl * pc = &(getPlayerData()->playerControl); + pc = &(getPlayerData()->playerControl); pc->softwareVolume = volume; } |