]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts scan: fix the situation where all SI tables are fine, but 'scan timed out...
authorJaroslav Kysela <perex@perex.cz>
Mon, 30 May 2016 13:31:32 +0000 (15:31 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 30 May 2016 13:31:32 +0000 (15:31 +0200)
src/input/mpegts/mpegts_mux.c

index 1b105ff0e2ef741074a965edbcb3ecbab5d91352..c3d23cbed93c0206215366ef3a46af27276dabdf 100644 (file)
@@ -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) {