Commit 2d86bf1c authored by Rémi Denis-Courmont's avatar 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.
parent 8cfc8c96
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <vlc_block_helper.h> #include <vlc_block_helper.h>
#include <vlc_bits.h> #include <vlc_bits.h>
#include <vlc_modules.h> #include <vlc_modules.h>
#include <vlc_cpu.h>
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
...@@ -120,7 +121,7 @@ static block_t *GetSoutBuffer( decoder_t * ); ...@@ -120,7 +121,7 @@ static block_t *GetSoutBuffer( decoder_t * );
static int OpenDecoder( vlc_object_t *p_this ) static int OpenDecoder( vlc_object_t *p_this )
{ {
/* HACK: Don't use this codec if we don't have an dts audio filter */ /* 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 VLC_EGENERIC;
return OpenCommon( p_this, false ); return OpenCommon( p_this, false );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment