Commit 4e82695c authored by Christophe Massiot's avatar Christophe Massiot

Compilation fix.

parent 425dd277
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* sdl.c : SDL audio output plugin for vlc * sdl.c : SDL audio output plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2002 VideoLAN * Copyright (C) 2000-2002 VideoLAN
* $Id: sdl.c,v 1.19 2003/01/13 14:51:25 massiot Exp $ * $Id: sdl.c,v 1.20 2003/01/13 16:58:58 massiot Exp $
* *
* Authors: Michel Kaempf <maxx@via.ecp.fr> * Authors: Michel Kaempf <maxx@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -79,6 +79,7 @@ static int Open ( vlc_object_t *p_this ) ...@@ -79,6 +79,7 @@ static int Open ( vlc_object_t *p_this )
aout_instance_t *p_aout = (aout_instance_t *)p_this; aout_instance_t *p_aout = (aout_instance_t *)p_this;
SDL_AudioSpec desired, obtained; SDL_AudioSpec desired, obtained;
int i_nb_channels; int i_nb_channels;
vlc_value_t val;
/* Check that no one uses the DSP. */ /* Check that no one uses the DSP. */
Uint32 i_flags = SDL_INIT_AUDIO; Uint32 i_flags = SDL_INIT_AUDIO;
...@@ -172,7 +173,6 @@ static int Open ( vlc_object_t *p_this ) ...@@ -172,7 +173,6 @@ static int Open ( vlc_object_t *p_this )
if ( var_Type( p_aout, "audio-device" ) == 0 ) if ( var_Type( p_aout, "audio-device" ) == 0 )
{ {
vlc_value_t val;
var_Create( p_aout, "audio-device", VLC_VAR_STRING | VLC_VAR_HASCHOICE ); var_Create( p_aout, "audio-device", VLC_VAR_STRING | VLC_VAR_HASCHOICE );
val.psz_string = (obtained.channels == 2) ? N_("Stereo") : val.psz_string = (obtained.channels == 2) ? N_("Stereo") :
N_("Mono"); N_("Mono");
...@@ -184,7 +184,6 @@ static int Open ( vlc_object_t *p_this ) ...@@ -184,7 +184,6 @@ static int Open ( vlc_object_t *p_this )
else if ( var_Type( p_aout, "audio-device" ) == 0 ) else if ( var_Type( p_aout, "audio-device" ) == 0 )
{ {
/* First launch. */ /* First launch. */
vlc_value_t val;
var_Create( p_aout, "audio-device", VLC_VAR_STRING | VLC_VAR_HASCHOICE ); var_Create( p_aout, "audio-device", VLC_VAR_STRING | VLC_VAR_HASCHOICE );
val.psz_string = N_("Stereo"); val.psz_string = N_("Stereo");
var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val ); var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val );
......
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