[vlc-commits] rss: convert the "speed" in microseconds to ticks using VLC_TICK_FROM_US()

Steve Lhomme git at videolan.org
Tue Jul 3 15:30:50 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul  3 15:10:32 2018 +0200| [6b970b2026b3dccf667bfbbfca8b4b873b11f97a] | committer: Steve Lhomme

rss: convert the "speed" in microseconds to ticks using VLC_TICK_FROM_US()

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

 modules/spu/rss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/spu/rss.c b/modules/spu/rss.c
index 44e1074a9b..6a9f25e485 100644
--- a/modules/spu/rss.c
+++ b/modules/spu/rss.c
@@ -264,7 +264,7 @@ static int CreateFilter( vlc_object_t *p_this )
     p_sys->i_cur_char = 0;
     p_sys->i_feeds = 0;
     p_sys->p_feeds = NULL;
-    p_sys->i_speed = var_CreateGetInteger( p_filter, CFG_PREFIX "speed" );
+    p_sys->i_speed = VLC_TICK_FROM_US( var_CreateGetInteger( p_filter, CFG_PREFIX "speed" ) );
     p_sys->i_length = var_CreateGetInteger( p_filter, CFG_PREFIX "length" );
     p_sys->b_images = var_CreateGetBool( p_filter, CFG_PREFIX "images" );
 



More information about the vlc-commits mailing list