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

MKV: Don't ignore user preferences for track selection

Fix #6375
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 511519e3
......@@ -1362,11 +1362,15 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
if( unlikely( !p_tk->b_enabled ) )
p_tk->fmt.i_priority = -2;
else if( p_tk->b_forced )
p_tk->fmt.i_priority = 1;
p_tk->fmt.i_priority = 2;
else if( p_tk->b_default )
p_tk->fmt.i_priority = 0;
p_tk->fmt.i_priority = 1;
else
p_tk->fmt.i_priority = -1;
p_tk->fmt.i_priority = 0;
/* Avoid multivideo tracks when unnecessary */
if( p_tk->fmt.i_cat == VIDEO_ES )
p_tk->fmt.i_priority--;
p_tk->p_es = es_out_Add( sys.demuxer.out, &p_tk->fmt );
......
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