[vlc-devel] [PATCH 2/2] ALSA: fix wrong test for 5 channels
Edward Sheldrake
ejsheldrake at gmail.com
Wed Feb 29 20:11:29 CET 2012
---
modules/audio_output/alsa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c
index bcca085..fcf1e86 100644
--- a/modules/audio_output/alsa.c
+++ b/modules/audio_output/alsa.c
@@ -404,7 +404,7 @@ static int Open (vlc_object_t *obj)
* This should deal with "surround41" and "surround50" routers.
* This assumes that no real hardware supports exactly 5 channels. */
else if (channels == 5
- && snd_pcm_hw_params_set_channels (pcm, hw, channels))
+ && snd_pcm_hw_params_set_channels (pcm, hw, channels) == 0)
chans = channels;
/* Otherwise, if stereo is supported, then use that. This deals with
* the "front" device that fails to enforce stereo on Surround cards. */
--
1.7.9.2
More information about the vlc-devel
mailing list