[vlc-devel] [PATCH 2/3] input: es_out: fix impossible commandline selection of not defaultable tracks

Francois Cartegnie fcvlcdev at free.fr
Tue Jun 16 10:48:16 CEST 2020


---
 src/input/es_out.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 190e8fea9c..78c8153712 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2415,6 +2415,10 @@ static bool EsOutSelectMatchPrioritized( const es_out_es_props_t *p_esprops,
         if( es->fmt.i_priority > p_esprops->p_main_es->fmt.i_priority )
             return true;
     }
+    else if( es->fmt.i_priority > ES_PRIORITY_NOT_DEFAULTABLE )
+    {
+        return true;
+    }
 
     return false;
 }
@@ -2461,10 +2465,7 @@ static void EsOutSelect( es_out_t *out, es_out_id_t *es, bool b_force )
 {
     es_out_sys_t *p_sys = container_of(out, es_out_sys_t, out);
     es_out_es_props_t *p_esprops = GetPropsByCat( p_sys, es->fmt.i_cat );
-
-    if( !p_esprops || !p_sys->b_active ||
-        ( !b_force && es->fmt.i_priority < ES_PRIORITY_SELECTABLE_MIN ) ||
-        !es->p_pgrm )
+    if( !p_esprops || !p_sys->b_active || !es->p_pgrm )
     {
         return;
     }
-- 
2.25.4



More information about the vlc-devel mailing list