]> git.sesse.net Git - vlc/commitdiff
libvlc: fix libvlc_video_set_track()
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 17 Jun 2009 18:48:02 +0000 (20:48 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 17 Jun 2009 18:48:52 +0000 (20:48 +0200)
When we set the video track, we probably be wanting to change video-es vars instead of audio-es

src/control/video.c

index 3b8fbf22cf0b933ec954c2b9c01c41de56c8b682..d90b1a411555ccc179e89f9bf438501934a31ced 100644 (file)
@@ -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;