Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts scan: fix the situation where all SI tables are fine, but 'sca…
…n timed out' is reported
  • Loading branch information
perexg committed May 30, 2016
1 parent 696f476 commit 06bd0f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/input/mpegts/mpegts_mux.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 06bd0f2

Please sign in to comment.