aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-25 21:51:39 +0100
committerMax Kellermann <max@duempel.org>2009-02-25 21:51:39 +0100
commit8491f61d6c4ea95e4bca32dea2d9934376d35675 (patch)
tree7946dc8b1a110eaa89c44984714e68a6edf1b14c /src/output
parent6722c508a1fe28783e863a57eeb0423bbbbe0b50 (diff)
downloadmpd-8491f61d6c4ea95e4bca32dea2d9934376d35675.tar.gz
mpd-8491f61d6c4ea95e4bca32dea2d9934376d35675.tar.xz
mpd-8491f61d6c4ea95e4bca32dea2d9934376d35675.zip
mvp: fall back to stereo
When the channel count is greater than 2, fall back to stereo sound.
Diffstat (limited to '')
-rw-r--r--src/output/mvp_plugin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/output/mvp_plugin.c b/src/output/mvp_plugin.c
index ecb10e7f4..08e92bd85 100644
--- a/src/output/mvp_plugin.c
+++ b/src/output/mvp_plugin.c
@@ -134,7 +134,11 @@ mvp_set_pcm_params(struct mvp_data *md, struct audio_format *audio_format)
break;
default:
- return false;
+ g_debug("unsupported channel count %u - falling back to stereo",
+ audio_format->channels);
+ audio_format->channels = 2;
+ mix[0] = 0;
+ break;
}
/* 0,1=24bit(24) , 2,3=16bit */