[vlc-commits] Correct variable name in libvlc_audio_output_device_set()
Rémi Denis-Courmont
git at videolan.org
Tue Aug 2 17:17:47 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 2 18:06:36 2011 +0300| [d792d6842f586129fb2fa144e138800fb83241c0] | committer: Rémi Denis-Courmont
Correct variable name in libvlc_audio_output_device_set()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d792d6842f586129fb2fa144e138800fb83241c0
---
src/control/audio.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/control/audio.c b/src/control/audio.c
index aa71969..c7d1ba1 100644
--- a/src/control/audio.c
+++ b/src/control/audio.c
@@ -272,9 +272,9 @@ void libvlc_audio_output_device_set( libvlc_media_player_t *mp,
return;
if( asprintf( &psz_config_name, "%s-audio-device", psz_audio_output ) == -1 )
return;
- if( !var_Type( mp, psz_audio_output ) )
+ if( !var_Type( mp, psz_config_name ) )
/* Don't recreate the same variable over and over and over... */
- var_Create( mp, psz_audio_output, VLC_VAR_STRING );
+ var_Create( mp, psz_config_name, VLC_VAR_STRING );
var_SetString( mp, psz_config_name, psz_device_id );
free( psz_config_name );
}
More information about the vlc-commits
mailing list