[vlc-devel] commit: Disable audio time stretch if there is no FPU ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Oct 19 21:15:50 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 19 22:04:51 2009 +0300| [69f6faef31047486b5b3a66d8508181e084ce980] | committer: Rémi Denis-Courmont 

Disable audio time stretch if there is no FPU

It's not implemented for fixed-point. And it's so slow that it would
probably not make sense anyway.

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

 src/libvlc-module.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 41b841a..caa86c9 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -36,6 +36,7 @@
 
 #include <vlc_common.h>
 #include <vlc_plugin.h>
+#include <vlc_cpu.h>
 #include "libvlc.h"
 
 //#define Nothing here, this is just to prevent update-po from being stupid
@@ -1568,7 +1569,7 @@ vlc_module_begin ()
     add_bool( "audio-replay-gain-peak-protection", true, NULL,
               AUDIO_REPLAY_GAIN_PEAK_PROTECTION_TEXT, AUDIO_REPLAY_GAIN_PEAK_PROTECTION_LONGTEXT, true )
 
-    add_bool( "audio-time-stretch", true, NULL,
+    add_bool( "audio-time-stretch", HAVE_FPU, NULL,
               AUDIO_TIME_STRETCH_TEXT, AUDIO_TIME_STRETCH_LONGTEXT, false )
 
     set_subcategory( SUBCAT_AUDIO_AOUT )




More information about the vlc-devel mailing list