Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
EIT: improve table complete state detection
  • Loading branch information
perexg committed Nov 6, 2015
1 parent 117d1db commit 16b62c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/epggrab/module/eit.c
Expand Up @@ -625,12 +625,13 @@ _eit_callback
// TODO: extra ID should probably include onid

/* Register interest */
if (tableid == 0x4e || tableid >= 0x50)
if (tableid == 0x4e || (tableid >= 0x50 && tableid < 0x60))
ota = epggrab_ota_register((epggrab_module_ota_t*)mod, NULL, mm);

/* Begin */
r = dvb_table_begin((mpegts_psi_table_t *)mt, ptr, len,
tableid, extraid, 11, &st, &sect, &last, &ver);
if (r == 0) goto complete;
if (r < 0) return r;
if (tableid != 0x4e && r != 1) return r;
if (st && r > 0) {
Expand Down Expand Up @@ -706,7 +707,8 @@ _eit_callback

done:
r = dvb_table_end((mpegts_psi_table_t *)mt, st, sect);
if (ota && !r)
complete:
if (ota && !r && (tableid >= 0x50 && tableid < 0x60))
epggrab_ota_complete((epggrab_module_ota_t*)mod, ota);

return r;
Expand Down

0 comments on commit 16b62c9

Please sign in to comment.