From: Jaroslav Kysela Date: Thu, 1 Nov 2018 18:12:54 +0000 (+0100) Subject: satip client: do faster recovery when the server reboots X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fc6cba4d6c9a378aa160751b3f445f500313703;p=thirdparty%2Ftvheadend.git satip client: do faster recovery when the server reboots --- diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index 3f1c033ac..231b36351 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -1602,6 +1602,11 @@ satip_frontend_input_thread ( void *aux ) * New tune */ new_tune: + pthread_mutex_lock(&lfe->sf_dvr_lock); + if (lfe->sf_req) + mpegts_pid_done(&lfe->sf_req->sf_pids_tuned); + pthread_mutex_unlock(&lfe->sf_dvr_lock); + udp_rtp_packet_destroy_all(lfe); sbuf_free(sb); udp_multirecv_free(&um); @@ -1650,9 +1655,9 @@ new_tune: tvhtrace(LS_SATIP, "%s - input thread received shutdown", buf); exit_flag = 1; goto done; - } else if (b[0] == 's') { + } else if (b[0] == 's' || b[0] == 'c') { tvhtrace(LS_SATIP, "%s - start", buf); - start = 1; + start |= 1; } } }