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

libvlc_audio_output_set: really force the requested output

parent 629dbd8a
......@@ -133,9 +133,13 @@ void libvlc_audio_output_list_release( libvlc_audio_output_t *p_list )
***********************/
int libvlc_audio_output_set( libvlc_media_player_t *mp, const char *psz_name )
{
if( !module_exists( psz_name ) )
char *value;
if( !module_exists( psz_name )
|| asprintf( &value, "%s,none", psz_name ) == -1 )
return -1;
var_SetString( mp, "aout", psz_name );
var_SetString( mp, "aout", value );
free( value );
return 0;
}
......
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