[vlc-devel] [PATCH 1/2] es_out: only set the sout pace if it changed

Steve Lhomme robux4 at ycbcr.xyz
Thu Aug 13 14:10:03 CEST 2020


We already test if it's different so make use of it.
---
 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 89d819b4c5b..ef6b1c9b869 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2782,9 +2782,10 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
         bool pace = sout_instance_ControlsPace(input_priv(p_input)->p_sout);
 
         if( input_priv(p_input)->b_out_pace_control != pace )
+        {
             msg_Dbg( p_input, "switching to %ssync mode", pace ? "a" : "" );
-
-        input_priv(p_input)->b_out_pace_control = pace;
+            input_priv(p_input)->b_out_pace_control = pace;
+        }
     }
 #endif
 
-- 
2.26.2



More information about the vlc-devel mailing list