From 65facb3fc4eb89707c5391175af7cb90a8cb30ec Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 27 Jul 2014 16:17:43 +0200 Subject: [PATCH] SAT>IP: set the teardown timeout to 500ms --- src/input/mpegts/satip/satip_frontend.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index 953930a8..218fadfb 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -1183,8 +1183,10 @@ satip_frontend_input_thread ( void *aux ) r = http_client_run(rtsp); if (r != HTTP_CON_RECEIVING && r != HTTP_CON_SENDING) break; - nfds = tvhpoll_wait(efd, ev, 1, -1); - if (nfds <= 0) { + nfds = tvhpoll_wait(efd, ev, 1, 500); + if (nfds == 0) + break; + if (nfds < 0) { if (ERRNO_AGAIN(errno)) continue; break;