Ticket #943: eithelper_cache.patch
File eithelper_cache.patch, 1.2 KB (added by , 18 years ago) |
---|
-
eithelper.h
31 31 32 32 private: 33 33 int GetChanID(int tid_db, const Event &event) const; 34 staticuint UpdateEITList(int mplexid, const QList_Events &events);34 uint UpdateEITList(int mplexid, const QList_Events &events); 35 35 36 36 QListList_Events eitList; ///< Event Information Tables List 37 37 mutable QMutex eitList_lock; ///< EIT List lock -
eithelper.cpp
122 122 srv |= (event.ATSC) ? (mplexid << 16) : (event.NetworkID << 16); 123 123 124 124 int chanid = srv_to_chanid[srv]; 125 if (chanid == 0) 125 if (chanid == 0) 126 126 srv_to_chanid[srv] = chanid = get_chan_id_from_db(mplexid, event); 127 127 return chanid; 128 128 } … … 136 136 QList_Events::const_iterator e = events.begin(); 137 137 for (; e != events.end(); ++e) 138 138 { 139 int chanid = get_chan_id_from_db(mplexid, **e);139 int chanid = GetChanID(mplexid, **e); 140 140 if (chanid <= 0) 141 141 continue; 142 142 counter += update_eit_in_db(query1, query2, chanid, **e);