Commit 10f039ac authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

libvlc: fix libvlc_video_set_track()

When we set the video track, we probably be wanting to change video-es vars instead of audio-es
(cherry picked from commit e1abfdca)
Signed-off-by: default avatarDerk-Jan Hartman <hartman@videolan.org>
parent 7c0fab32
...@@ -735,7 +735,7 @@ void libvlc_video_set_track( libvlc_media_player_t *p_mi, int i_track, ...@@ -735,7 +735,7 @@ void libvlc_video_set_track( libvlc_media_player_t *p_mi, int i_track,
vlc_value_t val = val_list.p_list->p_values[i]; vlc_value_t val = val_list.p_list->p_values[i];
if( i_track == val.i_int ) if( i_track == val.i_int )
{ {
i_ret = var_Set( p_input_thread, "audio-es", val ); i_ret = var_Set( p_input_thread, "video-es", val );
if( i_ret < 0 ) if( i_ret < 0 )
libvlc_exception_raise( p_e, "Setting video track failed" ); libvlc_exception_raise( p_e, "Setting video track failed" );
goto end; goto end;
......
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