]> git.sesse.net Git - vlc/commitdiff
fix dts spdif output regression
authorMatthias Dahl <khaos.dev@binary-island.eu>
Mon, 16 Nov 2009 16:29:36 +0000 (17:29 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 24 Nov 2009 20:50:15 +0000 (22:50 +0200)
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@remlab.net>
modules/audio_filter/converter/dtstofloat32.c

index a3529266cd080a2fa8c3acf68ffe11bf2ff00d02..2b9580ed77e9535329e0edf1767516b9be5034f5 100644 (file)
@@ -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;
     }