]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/sdl.c
* modules/*: sanitization of the modules description strings.
[vlc] / modules / audio_output / sdl.c
index 0429119ef711bc5ab1217b1fdc0fb1212a4d7936..6e70aefee4beeb81cfe559883a01edfbcff12fb2 100644 (file)
@@ -2,7 +2,7 @@
  * sdl.c : SDL audio output plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000-2002 VideoLAN
- * $Id: sdl.c,v 1.19 2003/01/13 14:51:25 massiot Exp $
+ * $Id: sdl.c,v 1.21 2003/03/30 18:14:36 gbazin Exp $
  *
  * Authors: Michel Kaempf <maxx@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -65,7 +65,7 @@ static void SDLCallback ( void *, byte_t *, int );
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    set_description( _("Simple DirectMedia Layer audio module") );
+    set_description( _("Simple DirectMedia Layer audio output") );
     set_capability( "audio output", 40 );
     add_shortcut( "sdl" );
     set_callbacks( Open, Close );
@@ -79,6 +79,7 @@ static int Open ( vlc_object_t *p_this )
     aout_instance_t *p_aout = (aout_instance_t *)p_this;
     SDL_AudioSpec desired, obtained;
     int i_nb_channels;
+    vlc_value_t val;
 
     /* Check that no one uses the DSP. */
     Uint32 i_flags = SDL_INIT_AUDIO;
@@ -172,7 +173,6 @@ static int Open ( vlc_object_t *p_this )
 
         if ( var_Type( p_aout, "audio-device" ) == 0 )
         {
-            vlc_value_t val;
             var_Create( p_aout, "audio-device", VLC_VAR_STRING | VLC_VAR_HASCHOICE );
             val.psz_string = (obtained.channels == 2) ? N_("Stereo") :
                               N_("Mono");
@@ -184,7 +184,6 @@ static int Open ( vlc_object_t *p_this )
     else if ( var_Type( p_aout, "audio-device" ) == 0 )
     {
         /* First launch. */
-        vlc_value_t val;
         var_Create( p_aout, "audio-device", VLC_VAR_STRING | VLC_VAR_HASCHOICE );
         val.psz_string = N_("Stereo");
         var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val );