Commit 3add8370 authored by Thomas Guillem's avatar 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).
parent 57a878e6
...@@ -552,6 +552,8 @@ int libvlc_video_set_track( libvlc_media_player_t *p_mi, int i_track ) ...@@ -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( 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 ) if( var_SetInteger( p_input_thread, "video-es", i_track ) < 0 )
break; break;
i_ret = 0; i_ret = 0;
......
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