Ticket #1056: dn-eit-scan-fixup.diff

File dn-eit-scan-fixup.diff, 1.1 KB (added by anonymous, 18 years ago)

support for DN when not all NETWORK id's are sent

  • libs/libmythtv/siparser.cpp

    old new  
    11201122void SIParser::ParseNIT(uint pid, tablehead_t *head,
    11211123                        uint8_t *buffer, uint size)
    11221124{
     1125    static int count = 0;
    11231126    // Only process current network NITs for now
    11241127    if (head->table_id != 0x40)
    11251128        return;
    11261129
    11271130    // Check to see if you already pulled this table section
    11281131    if (Table[NETWORK]->AddSection(head,0,0))
     1132    {
     1133           if (count > 10)
     1134                   return;
     1135        count++;
     1136       if (count == 10)
     1137       {
     1138               VERBOSE(VB_GENERAL, "Forcing NETWORK");
     1139           for(int i = 0; i <= head->section_last; i++)
     1140            {
     1141               tablehead_t h1 = *head;
     1142               h1.section_number = i;
     1143               Table[NETWORK]->AddSection(&h1,0,0);
     1144            }
     1145       }
    11291146        return;
    1130 
     1147    }
     1148    count = 0;
    11311149    // TODO: Emit a table load here for scanner
    11321150
    11331151    TransportObject t;