Skip to content
Snippets Groups Projects
Commit 4b2e5e42 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

satip: convert the hardcoded seconds to ticks using vlc_tick_from_sec()

parent 54b86a0c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment