[vlc-devel] [PATCH] lib/video: set "video" prop to true when changing video tracks

Thomas Guillem thomas at gllm.fr
Tue Apr 28 18:41:42 CEST 2015


It allows an application to re-activate video when the media was played without
video (i.e. with :no-video).
---
 lib/video.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/video.c b/lib/video.c
index 4abe36e..342247f 100644
--- a/lib/video.c
+++ b/lib/video.c
@@ -552,6 +552,8 @@ int libvlc_video_set_track( libvlc_media_player_t *p_mi, int i_track )
     {
         if( i_track == val_list.p_list->p_values[i].i_int )
         {
+            if( var_SetBool( p_input_thread, "video", true ) < 0)
+                break;
             if( var_SetInteger( p_input_thread, "video-es", i_track ) < 0 )
                 break;
             i_ret = 0;
-- 
2.1.4




More information about the vlc-devel mailing list