[vlc-commits] Correct variable name in libvlc_audio_output_device_set()

Rémi Denis-Courmont git at videolan.org
Tue Aug 2 22:51:31 CEST 2011


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug  2 18:06:36 2011 +0300| [28ba660bf413b9a5cfaa8e4fbe353f4279f54961] | committer: Jean-Baptiste Kempf

Correct variable name in libvlc_audio_output_device_set()
(cherry picked from commit d792d6842f586129fb2fa144e138800fb83241c0)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=28ba660bf413b9a5cfaa8e4fbe353f4279f54961
---

 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 edde5b7..90333a8 100644
--- a/src/control/audio.c
+++ b/src/control/audio.c
@@ -266,9 +266,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