Ticket #855: dvbconfparser.patch

File dvbconfparser.patch, 660 bytes (added by John Pullan <john.pullan@…>, 20 years ago)
  • dvbconfparser.cpp

     
    154154    if (i != end) c.name = *i++; else return false;
    155155    if (i != end) c.frequency = (*i++).toInt(); else return false;
    156156    if (i == end || !c.modulation.parseConf(*i++)) return false;
     157    if (i == end ) return false; else i++; // video
     158    if (i == end ) return false; else i++; // audio
    157159    // We need the program number in the transport stream,
    158160    // otherwise we cannot "tune" to the program.
    159161    if (i != end) c.serviceid = (*i++).toInt(); else return false;