Commit 28ba660b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

Correct variable name in libvlc_audio_output_device_set()

(cherry picked from commit d792d6842f586129fb2fa144e138800fb83241c0)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 21d1febb
......@@ -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 );
}
......
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