Commit 8ad63155 authored by Rémi Duraffort's avatar Rémi Duraffort

Factorize.

parent 64b65409
......@@ -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" ) != 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
......
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