Ticket #579: siparser.patch

File siparser.patch, 1.6 KB (added by John Pullan <john.pullan@…>, 20 years ago)
  • siparser.cpp

     
    14431443        pos += 12;
    14441444        des_pos = pos;
    14451445
     1446       
     1447        bestDescriptorsEE.clear();
     1448        bestDescriptorSE         = NULL;
    14461449        // Pick out EIT descriptors for later parsing, and parse others.
    14471450        while ((des_pos < (pos + descriptors_length)) && (des_pos <= size))
    14481451        {
    14491452            des_pos += ProcessDVBEventDescriptors(
    14501453                &buffer[des_pos], bestDescriptorSE, bestDescriptorsEE, event);
    14511454        }
    1452 
    14531455        // Parse extended event descriptions for the most preferred language
    14541456        for (uint i = 0; i < bestDescriptorsEE.size(); ++i)
    14551457        {
     
    19521954 */
    19531955uint SIParser::ProcessDVBEventDescriptors(
    19541956    const unsigned char          *data,
    1955     const unsigned char*         &bestDescriptorSE,
     1957    const unsigned char*               &bestDescriptorSE,
    19561958    vector<const unsigned char*> &bestDescriptorsEE,
    19571959    Event                        &event)
    19581960{
    19591961    QString bestLanguageSE   = "";
    19601962    uint    bestPrioritySE   = UINT_MAX;
    1961     bestDescriptorSE         = NULL;
    19621963
    19631964    QString bestLanguageEE   = "";
    19641965    uint    bestPriorityEE   = UINT_MAX;
    1965     bestDescriptorsEE.clear();
    19661966
    19671967    uint    descriptorTag    = data[0];
    19681968    uint    descriptorLength = data[1];
     
    19751975
    19761976            uint    priority = GetLanguagePriority(language);
    19771977            bestPrioritySE   = min(bestPrioritySE, priority);
    1978 
    19791978            if (priority == bestPrioritySE)
    19801979            {
    19811980                // add the descriptor, and update the language