Commit 3fca93ef authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf
Browse files

input: auto select all (perfectly) matched slaves

Historically, only local slaves or one added via the "input-slave" are
automatically selected. This commit adds autoselection for slaves found
by a network directory demuxer. To avoid false positives, only perfectly
matched slaves are auto-selected.

There is still a difference between local and network slaves:
 - Any matched local slaves will be auto-selected
 - Only perfectly matched network slaves will be auto-selected

Fixes #25673
parent 55e5f204
......@@ -1153,7 +1153,7 @@ static void LoadSlaves( input_thread_t *p_input )
/* Force the first subtitle with the highest priority or with the
* forced flag */
if ( p_slave->b_forced || p_slave->i_priority == SLAVE_PRIORITY_USER )
if ( p_slave->b_forced || p_slave->i_priority >= SLAVE_PRIORITY_MATCH_ALL )
i_flags |= SLAVE_ADD_FORCED;
if( input_SlaveSourceAdd( p_input, p_slave->i_type, p_slave->psz_uri,
......
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