[vlc-devel] [PATCH 2/3] scaletempo: change pitch submodule name

Thomas Guillem thomas at gllm.fr
Tue Nov 7 18:40:35 CET 2017


This fixes the pitch submodule that could be loaded instead of scaletempo.
Indeed, both the scaletempo module and the pitch submodules have the same
capability and had the name main name.
---
 modules/audio_filter/scaletempo.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/audio_filter/scaletempo.c b/modules/audio_filter/scaletempo.c
index 2ba51b7eea..184466484d 100644
--- a/modules/audio_filter/scaletempo.c
+++ b/modules/audio_filter/scaletempo.c
@@ -63,11 +63,10 @@ vlc_module_begin ()
         N_("Search Length"), N_("Length in milliseconds to search for best overlap position"), true )
     set_callbacks( Open, Close )
 
-    add_submodule ()
+    add_submodule_name ( "pitch" )
     set_shortname( N_("Pitch Shifter") )
     set_description( N_("Audio pitch changer") )
     set_callbacks( OpenPitch, ClosePitch )
-    add_shortcut( "pitch" )
     add_float_with_range( "pitch-shift", 0, -12, 12,
         N_("Pitch Shift"), N_("Pitch shift in semitones"), false )
 vlc_module_end ()
-- 
2.11.0



More information about the vlc-devel mailing list