Commit 3a97968e authored by Lukas Durfina's avatar Lukas Durfina Committed by Rémi Denis-Courmont

Fix libvlc set audio track, subtitle

Signed-off-by: default avatarRémi Denis-Courmont <rdenis@simphalempin.com>
parent d0dd8179
......@@ -191,7 +191,7 @@ void libvlc_audio_set_track( libvlc_media_player_t *p_mi, int i_track,
for( i = 0; i < val_list.p_list->i_count; i++ )
{
vlc_value_t val = val_list.p_list->p_values[i];
if( i_track == i )
if( i_track == val.i_int )
{
i_ret = var_Set( p_input_thread, "audio-es", val );
if( i_ret < 0 )
......
......@@ -397,7 +397,7 @@ void libvlc_video_set_spu( libvlc_media_player_t *p_mi, int i_spu,
for( i = 0; i < val_list.p_list->i_count; i++ )
{
vlc_value_t val = val_list.p_list->p_values[i];
if( i_spu == i )
if( i_spu == val.i_int )
{
vlc_value_t new_val;
......
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