[vlc-commits] live555: convert the timer interval in ticks using vlc_tick_from_sec()

Steve Lhomme git at videolan.org
Thu Jul 5 15:04:31 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul  5 14:44:11 2018 +0200| [7f7fb3dddf8a250918c04f167153f01d04c91380] | committer: Steve Lhomme

live555: convert the timer interval in ticks using vlc_tick_from_sec()

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

 modules/access/live555.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
index 21d9a0bc52..ed6b47205c 100644
--- a/modules/access/live555.cpp
+++ b/modules/access/live555.cpp
@@ -1267,7 +1267,7 @@ static int Play( demux_t *p_demux )
             timeout = 60; /* default value from RFC2326 */
         msg_Dbg( p_demux, "We have a timeout of %d seconds", timeout );
 
-        vlc_tick_t interval = (timeout - 2) * CLOCK_FREQ;
+        vlc_tick_t interval = vlc_tick_from_sec(timeout - 2);
         vlc_timer_schedule( p_sys->timer, false, interval, interval);
     }
     p_sys->i_pcr = VLC_TICK_INVALID;



More information about the vlc-commits mailing list