Commit 32a7f895 authored by Laurent Aimar's avatar Laurent Aimar

Try to fallback to stereo for mono audio in alsa.

parent f89d0a88
......@@ -384,7 +384,7 @@ static int Open (vlc_object_t *obj)
/* Set channels count */
val = snd_pcm_hw_params_set_channels (pcm, hw, channels);
if (val && channels > 2) /* Fallback to stereo */
if (val && channels != 2) /* Fallback to stereo */
{
val = snd_pcm_hw_params_set_channels (pcm, hw, 2);
channels = 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment