I was not properly checking completion on table completion and CAT processing
was not marking that table as complete (ever).
ptr += dlen;
len -= dlen;
}
- return 0;
+
+ /* Finish */
+ return dvb_table_end(mt, st, sect);
}
/*
/* Pending tables (another 20s - bit arbitrary) */
} else if (q) {
+ tvhinfo("mepgts", "%s - initial scan needs more time", buf);
gtimer_arm(&mm->mm_initial_scan_timeout,
mpegts_mux_initial_scan_timeout, mm, 20);
return;
return;
LIST_FOREACH(mt, &mm->mm_tables, mt_link) {
- if((mt->mt_flags & MT_QUICKREQ) && mt->mt_count == 0)
+ if (!(mt->mt_flags & MT_QUICKREQ)) continue;
+ if(!mt->mt_complete)
return;
}