From: Jaroslav Kysela Date: Mon, 30 May 2016 13:31:32 +0000 (+0200) Subject: mpegts scan: fix the situation where all SI tables are fine, but 'scan timed out... X-Git-Tag: v4.2.1~450 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06bd0f2956e8f1b2e7e1ecd6f01a4f40658c83e1;p=thirdparty%2Ftvheadend.git mpegts scan: fix the situation where all SI tables are fine, but 'scan timed out' is reported --- diff --git a/src/input/mpegts/mpegts_mux.c b/src/input/mpegts/mpegts_mux.c index 1b105ff0e..c3d23cbed 100644 --- a/src/input/mpegts/mpegts_mux.c +++ b/src/input/mpegts/mpegts_mux.c @@ -1065,6 +1065,10 @@ mpegts_mux_scan_done ( mpegts_mux_t *mm, const char *buf, int res ) } pthread_mutex_unlock(&mm->mm_tables_lock); + /* override if all tables were found */ + if (res < 0 && incomplete <= 0 && total > 2) + res = 1; + if (res < 0) { /* is threshold 3 missing tables enough? */ if (incomplete > 0 && total > incomplete && incomplete <= 3) {