[vlc-devel] [PATCH] es_out: fix monotonic clock master selection

Francois Cartegnie fcvlcdev at free.fr
Mon Mar 16 10:59:05 CET 2020


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

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 118c780c95..895199928b 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2154,8 +2154,9 @@ static void EsOutCreateDecoder( es_out_t *out, es_out_id_t *p_es )
 
     assert( p_es->p_pgrm );
 
-    if( p_es->fmt.i_cat != UNKNOWN_ES
-     && p_es->fmt.i_cat == p_sys->i_master_source_cat
+    if( p_es->fmt.i_cat != UNKNOWN_ES &&
+       (p_sys->i_master_source_cat == UNKNOWN_ES ||
+        p_es->fmt.i_cat == p_sys->i_master_source_cat )
      && p_es->p_pgrm->p_master_clock == NULL )
     {
         p_es->master = true;
-- 
2.24.1



More information about the vlc-devel mailing list