diff options
Diffstat (limited to 'src/player.c')
-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; } |