[vlc-commits] es_out: only set the sout pace if it changed
Steve Lhomme
git at videolan.org
Mon Aug 17 16:14:24 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Aug 12 13:28:48 2020 +0200| [c213eb1b1c4e0e6d0637cadcb4d670d91717dcdb] | committer: Steve Lhomme
es_out: only set the sout pace if it changed
We already test if it's different so make use of it.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c213eb1b1c4e0e6d0637cadcb4d670d91717dcdb
---
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 89d819b4c5..ef6b1c9b86 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
More information about the vlc-commits
mailing list