[vlc-devel] commit: Cleanup NEON audio converter module description ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Sep 20 10:47:04 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep 19 21:03:30 2009 +0300| [914d654477c3653a417a7eb2efdd3d9940c81f67] | committer: Rémi Denis-Courmont 

Cleanup NEON audio converter module description

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

 modules/audio_filter/converter/neon.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/modules/audio_filter/converter/neon.c b/modules/audio_filter/converter/neon.c
index 838d3a8..7f84dce 100644
--- a/modules/audio_filter/converter/neon.c
+++ b/modules/audio_filter/converter/neon.c
@@ -30,9 +30,9 @@ static int Open (vlc_object_t *);
 
 vlc_module_begin ()
     set_description (N_("ARM NEON audio format conversions") )
-    add_submodule ()
-        set_capability ("audio filter", 20)
-        set_callbacks (Open, NULL)
+    set_capability ("audio filter", 20)
+    set_callbacks (Open, NULL)
+    add_requirement (NEON)
 vlc_module_end ()
 
 static void Do_F32_S32 (aout_instance_t *, aout_filter_t *,
@@ -44,8 +44,6 @@ static int Open (vlc_object_t *obj)
 {
     aout_filter_t *filter = (aout_filter_t *)obj;
 
-    if (!(vlc_CPU () & CPU_CAPABILITY_NEON))
-        return VLC_EGENERIC;
     if (!AOUT_FMTS_SIMILAR (&filter->input, &filter->output))
         return VLC_EGENERIC;
 




More information about the vlc-devel mailing list