Ticket #498: scan-dbg.patch
File scan-dbg.patch, 2.2 KB (added by , 20 years ago) |
---|
-
libs/libmythtv/mpeg/mpegtables.cpp
79 79 { 80 80 _ptrs.clear(); 81 81 unsigned char *pos = 82 const_cast<unsigned char*>82 const_cast<unsigned char*> 83 83 (pesdata() + PSIP_OFFSET + pmt_header + ProgramInfoLength()); 84 for (unsigned int i=0; pos < pesdata()+Length(); i++) { 84 85 for (uint i = 0; pos < pesdata() + Length(); i++) 86 { 85 87 _ptrs.push_back(pos); 86 88 pos += 5 + StreamInfoLength(i); 87 89 } 88 90 _ptrs.push_back(pos); 91 VERBOSE(VB_IMPORTANT, "Parsed PMT(0x"<<this<<") "<<this->toString()); 89 92 } 90 93 91 94 void ProgramMapTable::AppendStream( -
libs/libmythtv/siscan.cpp
373 373 } 374 374 } 375 375 376 void SIScan::HandleATSCDBInsertion(const ScanStreamData *sd, bool wait_until_complete) 376 void SIScan::HandleATSCDBInsertion(const ScanStreamData *sd, 377 bool wait_until_complete) 377 378 { 378 379 bool hasAll = sd->HasCachedAllVCTs(); 379 380 if (wait_until_complete && !hasAll) … … 979 980 980 981 for (uint i = 0; i < pat->ProgramCount(); i++) 981 982 { 982 const ProgramMapTable *pmt = pmt_map[pat->ProgramNumber(i)]; 983 pmt_map_t::const_iterator it = pmt_map.find(pat->ProgramNumber(i)); 984 if (it == pmt_map.end()) 985 { 986 VERBOSE(VB_SIPARSER, 987 QString("UpdatePATinDB(): PMT for Program #%1 is missing") 988 .arg(pat->ProgramNumber(i))); 989 continue; 990 } 991 992 const ProgramMapTable *pmt = *it; 983 993 VERBOSE(VB_SIPARSER, 984 994 QString("UpdatePATinDB(): Prog %1 PID %2: PMT @") 985 995 .arg(pat->ProgramNumber(i)) … … 989 999 // ignore services we have decided to ignore 990 1000 if (!pmt) 991 1001 continue; 1002 else if (pmt->StreamCount() <= 0) 1003 continue; 992 1004 else if (ignoreAudioOnlyServices && pmt->IsStillPicture()) 993 1005 continue; 994 1006 else if (ignoreEncryptedServices && pmt->IsEncrypted())