[vlc-devel] commit: DirectX audio output: kill config_Get ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Dec 30 19:39:45 CET 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 30 20:30:16 2009 +0200| [05320812d49ad5f10efdd585a4607fdcc0f5864a] | committer: Rémi Denis-Courmont
DirectX audio output: kill config_Get
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=05320812d49ad5f10efdd585a4607fdcc0f5864a
---
modules/audio_output/directx.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c
index 3eff7a2..ce57d5b 100644
--- a/modules/audio_output/directx.c
+++ b/modules/audio_output/directx.c
@@ -553,7 +553,7 @@ static void Probe( aout_instance_t * p_aout )
text.psz_string = _("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 );
}
}
@@ -702,7 +702,7 @@ static int InitDirectSound( aout_instance_t *p_aout )
"DirectSoundEnumerateW" );
if( OurDirectSoundEnumerate )
{
- p_aout->output.p_sys->psz_device = config_GetPsz(p_aout, "directx-audio-device-name");
+ p_aout->output.p_sys->psz_device = var_InheritString(p_aout, "directx-audio-device-name");
/* Attempt enumeration */
if( FAILED( OurDirectSoundEnumerate( CallBackDirectSoundEnum,
p_aout ) ) )
More information about the vlc-devel
mailing list