aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-07 21:23:03 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-07 21:23:03 +0000
commit354d9aed798cb6d2119e0edf15dd203d4eb9a3b6 (patch)
treeeee674e966d75631e2e2266be4f04b96441353b2 /src/inputPlugins
parentae97bcdfa2fcf2ead5c712596f97e0d40c7b32fb (diff)
downloadmpd-354d9aed798cb6d2119e0edf15dd203d4eb9a3b6.tar.gz
mpd-354d9aed798cb6d2119e0edf15dd203d4eb9a3b6.tar.xz
mpd-354d9aed798cb6d2119e0edf15dd203d4eb9a3b6.zip
mpc_plugin.c: fix compilation error with MPC_FIXED_POINT
(It sounds like crap though) git-svn-id: https://svn.musicpd.org/mpd/trunk@4596 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins')
-rw-r--r--src/inputPlugins/mpc_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputPlugins/mpc_plugin.c b/src/inputPlugins/mpc_plugin.c
index 4e4aa75eb..500e57172 100644
--- a/src/inputPlugins/mpc_plugin.c
+++ b/src/inputPlugins/mpc_plugin.c
@@ -98,7 +98,7 @@ static inline mpd_sint16 convertSample(MPC_SAMPLE_FORMAT sample)
#ifdef MPC_FIXED_POINT
const int shift = 16 - MPC_FIXED_POINT_SCALE_SHIFT;
- if (ssample > 0) {
+ if (sample > 0) {
sample <<= shift;
} else if (shift < 0) {
sample >>= -shift;