From: Jaroslav Kysela Date: Tue, 11 Dec 2018 08:51:48 +0000 (+0100) Subject: iptv: correction for the previous patch, fixes #5415, issue #5353 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb4410ad712a32e27e6665012998395f87959522;p=thirdparty%2Ftvheadend.git iptv: correction for the previous patch, fixes #5415, issue #5353 --- diff --git a/src/input/mpegts/iptv/iptv_http.c b/src/input/mpegts/iptv/iptv_http.c index f31ccd7c9..0f42ed6c6 100644 --- a/src/input/mpegts/iptv/iptv_http.c +++ b/src/input/mpegts/iptv/iptv_http.c @@ -195,14 +195,14 @@ iptv_http_kick_cb( void *aux ) if (im == NULL) return; if (hp->flush) { hp->flush = 0; + tvh_mutex_lock(&iptv_lock); if (!hp->started) { iptv_input_mux_started(hp->mi, im); } else { - tvh_mutex_lock(&iptv_lock); iptv_input_recv_flush(im); - tvh_mutex_unlock(&iptv_lock); } hp->started = 1; + tvh_mutex_unlock(&iptv_lock); } if (hp->unpause) {