[vlc-commits] pulse: don't try convert unsupported formats
Thomas Guillem
git at videolan.org
Fri Oct 7 18:59:39 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Oct 7 15:43:59 2016 +0200| [3b7c710a4d522c8b9a45679a4d089a4521d54547] | committer: Thomas Guillem
pulse: don't try convert unsupported formats
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3b7c710a4d522c8b9a45679a4d089a4521d54547
---
modules/audio_output/pulse.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index d5ab7ab..ffe9ada 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -744,10 +744,9 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
ss.format = PA_SAMPLE_S16NE;
break;
- case VLC_CODEC_TRUEHD:
- case VLC_CODEC_MLP:
- return VLC_EGENERIC;
default:
+ if (!AOUT_FMT_LINEAR(fmt))
+ return VLC_EGENERIC;
if (HAVE_FPU)
{
fmt->i_format = VLC_CODEC_FL32;
More information about the vlc-commits
mailing list