[vlc-commits] sout:display: convert the "delay" in ms to ticks using VLC_TICK macros

Steve Lhomme git at videolan.org
Tue Jul 3 11:24:09 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul  3 11:11:47 2018 +0200| [1fb2e383adc150f1eb061854fc3929441e09f05e] | committer: Steve Lhomme

sout:display: convert the "delay" in ms to ticks using VLC_TICK macros

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1fb2e383adc150f1eb061854fc3929441e09f05e
---

 modules/stream_out/display.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/stream_out/display.c b/modules/stream_out/display.c
index 2aaf94ded9..372c249b9d 100644
--- a/modules/stream_out/display.c
+++ b/modules/stream_out/display.c
@@ -111,8 +111,7 @@ static int Open( vlc_object_t *p_this )
 
     p_sys->b_audio = var_GetBool( p_stream, SOUT_CFG_PREFIX"audio" );
     p_sys->b_video = var_GetBool( p_stream, SOUT_CFG_PREFIX "video" );
-    p_sys->i_delay = var_GetInteger( p_stream, SOUT_CFG_PREFIX "delay" );
-    p_sys->i_delay = p_sys->i_delay * CLOCK_FREQ / 1000;
+    p_sys->i_delay = VLC_TICK_FROM_MS( var_GetInteger( p_stream, SOUT_CFG_PREFIX "delay" ) );
 
     p_stream->pf_add    = Add;
     p_stream->pf_del    = Del;



More information about the vlc-commits mailing list