vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Wed Aug  3 
18:11:03 2011 +0300| [2d86bf1c5edfb0fb7560b7a81e0989d67b0cb3d0] | committer: 
Rémi Denis-Courmont

DTS: do not (try and fail to) use dtstofloat32 if !HAVE_FPU

Unfortunately, this will break S/PDIF pass-through for DTS if HAVE_FPU
is false, just like A/52 and MPEG Audio pass-through are broken if
a52dec or libmad are absent.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2d86bf1c5edfb0fb7560b7a81e0989d67b0cb3d0
---

 modules/codec/dts.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/codec/dts.c b/modules/codec/dts.c
index d12c89a..57899c3 100644
--- a/modules/codec/dts.c
+++ b/modules/codec/dts.c
@@ -38,6 +38,7 @@
 #include <vlc_block_helper.h>
 #include <vlc_bits.h>
 #include <vlc_modules.h>
+#include <vlc_cpu.h>
 
 /*****************************************************************************
  * Module descriptor
@@ -120,7 +121,7 @@ static block_t       *GetSoutBuffer( decoder_t * );
 static int OpenDecoder( vlc_object_t *p_this )
 {
     /* HACK: Don't use this codec if we don't have an dts audio filter */
-    if( !module_exists( "dtstofloat32" ) )
+    if( !HAVE_FPU || !module_exists( "dtstofloat32" ) )
         return VLC_EGENERIC;
 
     return OpenCommon( p_this, false );

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to