Commit fa0dc29a authored by Denis Charmet's avatar Denis Charmet Committed by Jean-Baptiste Kempf

Fix the subtitles loss at MKV segment changes

This patch add the new es before deleting the old ones which causes
the default sub track to be used according to user preferences.

Fix #5625.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5db30fd6
...@@ -450,9 +450,9 @@ void virtual_segment_c::Seek( demux_t & demuxer, mtime_t i_date, mtime_t i_time_ ...@@ -450,9 +450,9 @@ void virtual_segment_c::Seek( demux_t & demuxer, mtime_t i_date, mtime_t i_time_
if( p_current_chapter->p_segment != p_chapter->p_segment ) if( p_current_chapter->p_segment != p_chapter->p_segment )
{ {
p_current_chapter->p_segment->UnSelect();
es_out_Control( demuxer.out, ES_OUT_RESET_PCR ); es_out_Control( demuxer.out, ES_OUT_RESET_PCR );
p_chapter->p_segment->Select( i_date ); p_chapter->p_segment->Select( i_date );
p_current_chapter->p_segment->UnSelect();
} }
p_current_chapter = p_chapter; p_current_chapter = p_chapter;
......
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