first i was trying to disable the video track using libvlc_video_set_track(-1) : it disables the audio track.
then i tried to enable the video track again using libvlc_video_set_track(1) : it crashs.
The same thing works perfectly with audio track.
after a little digging in vlc's sources, i found this line in the middle of function libvlc_video_set_track:
Code: Select all
'i_ret = var_Set( p_input_thread, "audio-es", val );'
Code: Select all
'i_ret = var_Set( p_input_thread, "video-es", val );'
Thanks.