Ticket #1056: dn-eit-scan-fixup.diff
File dn-eit-scan-fixup.diff, 1.1 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/siparser.cpp
old new 1120 1122 void SIParser::ParseNIT(uint pid, tablehead_t *head, 1121 1123 uint8_t *buffer, uint size) 1122 1124 { 1125 static int count = 0; 1123 1126 // Only process current network NITs for now 1124 1127 if (head->table_id != 0x40) 1125 1128 return; 1126 1129 1127 1130 // Check to see if you already pulled this table section 1128 1131 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 } 1129 1146 return; 1130 1147 } 1148 count = 0; 1131 1149 // TODO: Emit a table load here for scanner 1132 1150 1133 1151 TransportObject t;