1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-24 20:48:52 +02:00

lib: recreate aout when module is changed

libvlc_audio_output_set() had no practical effects as the audio output
was consistently created before the application had the opportunity to
select a non-default module. This fixes it.

An alternative would be to remove the function entirely. Exposing
module names to LibVLC applications is bad design.
This commit is contained in:
Rémi Denis-Courmont 2022-01-31 22:27:20 +02:00
parent fd34522193
commit ce7cc9dd1a

View File

@ -130,6 +130,7 @@ int libvlc_audio_output_set( libvlc_media_player_t *mp, const char *psz_name )
var_SetString( mp, "aout", value );
free( value );
vlc_player_aout_Reset(mp->player);
return 0;
}