From dbee243488813e310f8ef603e441fa923ca6f0db Mon Sep 17 00:00:00 2001 From: Matthias Dahl Date: Mon, 16 Nov 2009 17:29:36 +0100 Subject: [PATCH] fix dts spdif output regression MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit dts spdif output was broken by the switch over to the new filter API. * dtstofloat32 should only take control if there is _no_ spdif output requested otherwise the decoded stream ends up on the spdif device Signed-off-by: Rémi Denis-Courmont --- modules/audio_filter/converter/dtstofloat32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/audio_filter/converter/dtstofloat32.c b/modules/audio_filter/converter/dtstofloat32.c index a3529266cd..2b9580ed77 100644 --- a/modules/audio_filter/converter/dtstofloat32.c +++ b/modules/audio_filter/converter/dtstofloat32.c @@ -325,7 +325,9 @@ static int OpenFilter( vlc_object_t *p_this ) filter_sys_t *p_sys; int i_ret; - if( p_filter->fmt_in.i_codec != VLC_CODEC_DTS ) + if( p_filter->fmt_in.i_codec != VLC_CODEC_DTS || + p_filter->fmt_out.audio.i_format == VLC_CODEC_SPDIFB || + p_filter->fmt_out.audio.i_format == VLC_CODEC_SPDIFL ) { return VLC_EGENERIC; } -- 2.39.2