]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/sdl.c
OSS: path from VLC core (or ASCII), need utf8_open()
[vlc] / modules / audio_output / sdl.c
index f8425fadb948574d1eeb4facb8cc97de49cc2585..070e2f6a27c3f2da37159ec10fa0574c462244c3 100644 (file)
@@ -37,7 +37,7 @@
 #include <vlc_plugin.h>
 #include <vlc_aout.h>
 
-#include SDL_INCLUDE_FILE
+#include <SDL/SDL.h>
 
 #define FRAME_SIZE 2048
 
@@ -108,11 +108,9 @@ static int Open ( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
-    if ( var_Type( p_aout, "audio-device" ) != 0 )
+    if( var_Get( p_aout, "audio-device", &val ) != VLC_ENOVAR )
     {
         /* The user has selected an audio device. */
-        vlc_value_t val;
-        var_Get( p_aout, "audio-device", &val );
         if ( val.i_int == AOUT_VAR_STEREO )
         {
             p_aout->output.output.i_physical_channels