[vlc-devel] commit: fix dts spdif output regression (Matthias Dahl )
git version control
git at videolan.org
Tue Nov 24 21:51:08 CET 2009
vlc | branch: master | Matthias Dahl <khaos.dev at binary-island.eu> | Mon Nov 16 17:29:36 2009 +0100| [dbee243488813e310f8ef603e441fa923ca6f0db] | committer: Rémi Denis-Courmont
fix dts spdif output regression
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 <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dbee243488813e310f8ef603e441fa923ca6f0db
---
modules/audio_filter/converter/dtstofloat32.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/audio_filter/converter/dtstofloat32.c b/modules/audio_filter/converter/dtstofloat32.c
index a352926..2b9580e 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;
}
More information about the vlc-devel
mailing list