From e1abfdca81e985dbabb843200806dc0daddd035f Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Wed, 17 Jun 2009 20:48:02 +0200 Subject: [PATCH] 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 --- src/control/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control/video.c b/src/control/video.c index 3b8fbf22cf..d90b1a4115 100644 --- a/src/control/video.c +++ b/src/control/video.c @@ -577,7 +577,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]; 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 ) libvlc_exception_raise( p_e, "Setting video track failed" ); goto end; -- 2.39.5