[vlc-commits] lib/video: set "video" prop to true when changing video tracks
Thomas Guillem
git at videolan.org
Wed Apr 29 14:12:54 CEST 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Apr 28 18:38:58 2015 +0200| [3add8370591bde4469720a368810fbd0e5e6e531] | committer: Thomas Guillem
lib/video: set "video" prop to true when changing video tracks
It allows an application to re-activate video when the media was played without
video (i.e. with :no-video).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3add8370591bde4469720a368810fbd0e5e6e531
---
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;
More information about the vlc-commits
mailing list