[vlc-commits] spu:marq: convert the refresh value using VLC_TICK_FROM_MS()

Steve Lhomme git at videolan.org
Tue Sep 18 16:42:44 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Sep 18 16:13:19 2018 +0200| [8a29bb2f50693583e85ee7b43407fd44da252087] | committer: Steve Lhomme

spu:marq: convert the refresh value using VLC_TICK_FROM_MS()

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

 modules/spu/marq.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/spu/marq.c b/modules/spu/marq.c
index 42185c3ae5..57c5976b58 100644
--- a/modules/spu/marq.c
+++ b/modules/spu/marq.c
@@ -211,8 +211,8 @@ static int CreateFilter( vlc_object_t *p_this )
     CREATE_VAR( i_xoff, Integer, "marq-x" );
     CREATE_VAR( i_yoff, Integer, "marq-y" );
     CREATE_VAR( i_timeout,Integer, "marq-timeout" );
-    p_sys->i_refresh = 1000 * var_CreateGetIntegerCommand( p_filter,
-                                                           "marq-refresh" );
+    p_sys->i_refresh = VLC_TICK_FROM_MS(var_CreateGetIntegerCommand( p_filter,
+                                                              "marq-refresh" ));
     var_AddCallback( p_filter, "marq-refresh", MarqueeCallback, p_sys );
     CREATE_VAR( i_pos, Integer, "marq-position" );
     CREATE_VAR( format, String, "marq-marquee" );
@@ -410,7 +410,7 @@ static int MarqueeCallback( vlc_object_t *p_this, char const *psz_var,
     }
     else if ( !strcmp( psz_var, "marq-refresh" ) )
     {
-        p_sys->i_refresh = newval.i_int * 1000;
+        p_sys->i_refresh = VLC_TICK_FROM_MS(newval.i_int);
     }
     else if ( !strcmp( psz_var, "marq-position" ) )
     /* willing to accept a match against marq-pos */



More information about the vlc-commits mailing list