From bc76f50aa6f0f19e05470b7a3935fd629a969152 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 30 Dec 2009 20:29:25 +0200 Subject: [PATCH] ALSA output: kill config_Get --- modules/audio_output/alsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c index 36b8c9a990..ccf0537632 100644 --- a/modules/audio_output/alsa.c +++ b/modules/audio_output/alsa.c @@ -251,7 +251,7 @@ static void Probe( aout_instance_t * p_aout, text.psz_string = (char*)N_("A/52 over S/PDIF"); var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val, &text ); - if( config_GetInt( p_aout, "spdif" ) ) + if( var_InheritInteger( p_aout, "spdif" ) ) var_Set( p_aout, "audio-device", val ); snd_pcm_close( p_sys->p_snd_pcm ); @@ -330,7 +330,7 @@ static int Open( vlc_object_t *p_this ) return VLC_ENOMEM; /* Get device name */ - if( (psz_device = config_GetPsz( p_aout, "alsa-audio-device" )) == NULL ) + if( (psz_device = var_InheritString( p_aout, "alsa-audio-device" )) == NULL ) { msg_Err( p_aout, "no audio device given (maybe \"default\" ?)" ); dialog_Fatal( p_aout, _("No Audio Device"), "%s", -- 2.39.5