vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Thu Jul 5 14:06:40 2018 +0200| [4b2e5e424f71c10f572bc3b8e197027679963850] | committer: Steve Lhomme
satip: convert the hardcoded seconds to ticks using vlc_tick_from_sec() > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4b2e5e424f71c10f572bc3b8e197027679963850 --- modules/access/satip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/access/satip.c b/modules/access/satip.c index da10a2658a..0429b97740 100644 --- a/modules/access/satip.c +++ b/modules/access/satip.c @@ -427,7 +427,7 @@ static void *satip_thread(void *data) { int sock = sys->udp_sock; vlc_tick_t last_recv = vlc_tick_now(); ssize_t len; - vlc_tick_t next_keepalive = vlc_tick_now() + sys->keepalive_interval * 1000 * 1000; + vlc_tick_t next_keepalive = vlc_tick_now() + vlc_tick_from_sec(sys->keepalive_interval); #ifdef HAVE_RECVMMSG struct mmsghdr msgs[VLEN]; struct iovec iovecs[VLEN]; @@ -519,7 +519,7 @@ static void *satip_thread(void *data) { if (rtsp_handle(access, NULL) != RTSP_RESULT_OK) msg_Warn(access, "Failed to keepalive RTSP session"); - next_keepalive = vlc_tick_now() + sys->keepalive_interval * 1000 * 1000; + next_keepalive = vlc_tick_now() + vlc_tick_from_sec(sys->keepalive_interval); } } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits