Commit d792d684 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Correct variable name in libvlc_audio_output_device_set()

parent ebb0ff10
......@@ -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 );
}
......
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