Ticket #1375: siparser.patch

File siparser.patch, 1.1 KB (added by phil.vid@…, 20 years ago)
  • libs/libmythtv/siparser.cpp

     
    823823
    824824        const unsigned char *d;
    825825
    826         d = MPEGDescriptor::Find(list, DescriptorID::conditional_access);
    827         if (d)
     826        it = list.begin();
     827        for (; it != list.end(); ++it)
    828828        {
    829             // Note: the saved streams have already been
    830             // descrambled by the CAM so any CA descriptors
    831             // should *not* be added to the descriptor list.
    832             // We need a CAPMTObject to send to the CAM though.
    833             CAPMTObject cad = ParseDescCA(d, d[1] + 2);
    834             e.CA.append(cad);
    835             p.hasCA = true;
     829            if (DescriptorID::conditional_access == (*it)[0])
     830            {
     831                CAPMTObject cad = ParseDescCA((*it), (*it)[1] + 2);
     832                e.CA.append(cad);
     833                p.hasCA = true;
     834            }
    836835        }
    837836
    838837        d = MPEGDescriptor::Find(list, DescriptorID::teletext);