Ticket #943: eithelper_cache.patch

File eithelper_cache.patch, 1.2 KB (added by greg, 18 years ago)
  • eithelper.h

     
    3131
    3232  private:
    3333    int GetChanID(int tid_db, const Event &event) const;
    34     static uint UpdateEITList(int mplexid, const QList_Events &events);
     34    uint UpdateEITList(int mplexid, const QList_Events &events);
    3535
    3636    QListList_Events  eitList;      ///< Event Information Tables List
    3737    mutable QMutex    eitList_lock; ///< EIT List lock
  • eithelper.cpp

     
    122122    srv |= (event.ATSC) ? (mplexid << 16) : (event.NetworkID << 16);
    123123
    124124    int chanid = srv_to_chanid[srv];
    125     if (chanid == 0)
     125    if (chanid == 0) 
    126126        srv_to_chanid[srv] = chanid = get_chan_id_from_db(mplexid, event);
    127127    return chanid;
    128128}
     
    136136    QList_Events::const_iterator e = events.begin();
    137137    for (; e != events.end(); ++e)
    138138    {
    139         int chanid = get_chan_id_from_db(mplexid, **e);
     139        int chanid = GetChanID(mplexid, **e);
    140140        if (chanid <= 0)
    141141            continue;
    142142        counter += update_eit_in_db(query1, query2, chanid, **e);