]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/alsa.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / modules / audio_output / alsa.c
index 2216e819e532dd0c1d8a0a23abc85ffa13231d3b..69190c7ffacf177a5cbf2df4ec98250405ce09d6 100644 (file)
@@ -338,7 +338,7 @@ static int Open( vlc_object_t *p_this )
     }
 
     /* Choose the IEC device for S/PDIF output:
-       if the device is overriden by the user then it will be the one
+       if the device is overridden by the user then it will be the one
        otherwise we compute the default device based on the output format. */
     char *psz_iec_device = NULL;
     if( AOUT_FMT_NON_LINEAR( &p_aout->output.output ) )
@@ -463,7 +463,7 @@ static int Open( vlc_object_t *p_this )
           the time it returns, probe if the device is available in loop for 1s.
           We cannot use blocking mode since the we would wait indefinitely when
           switching from a dmx device to surround51. */
-        if( i == 0 )
+        if( i == 1 )
         {
             msg_Err( p_aout, "audio device %s is already in use",
                      psz_device );