[vlc-devel] [PATCH 9/9] pulse: channel mask can be 0
Thomas Guillem
thomas at gllm.fr
Wed Oct 5 18:37:52 CEST 2016
---
modules/audio_output/pulse.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index 40dac54..7883186 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -750,6 +750,8 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
ss.rate = fmt->i_rate;
ss.channels = aout_FormatNbChannels(fmt);
+ if (ss.channels == 0)
+ ss.channels = fmt->i_channels;
if (!pa_sample_spec_valid(&ss)) {
msg_Err(aout, "unsupported sample specification");
return VLC_EGENERIC;
--
2.9.3
More information about the vlc-devel
mailing list