mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
CNeutrinoEventList::findEvents - speedup search in all channelList
Origin commit data
------------------
Commit: 63bb0996da
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-05-15 (Wed, 15 May 2013)
This commit is contained in:
@@ -2253,7 +2253,7 @@ void CEitManager::getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEve
|
||||
|
||||
for (MySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey::iterator e = mySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey.begin(); e != mySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey.end(); ++e)
|
||||
{
|
||||
if ((*e)->get_channel_id() == serviceUniqueKey64) {
|
||||
if ((*e)->get_channel_id() == serviceUniqueKey64 || (serviceUniqueKey64 == 1)) {
|
||||
serviceIDfound = 1;
|
||||
|
||||
bool copy = true;
|
||||
@@ -2289,7 +2289,10 @@ void CEitManager::getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEve
|
||||
aEvent.text = (*e)->getExtendedText().substr(0, 120);
|
||||
else
|
||||
aEvent.text = (*e)->getText();
|
||||
aEvent.channelID = serviceUniqueKey;
|
||||
if(serviceUniqueKey64 == 1)//hack for all channel search
|
||||
aEvent.channelID = (*e)->get_channel_id();
|
||||
else
|
||||
aEvent.channelID = serviceUniqueKey;
|
||||
eList.push_back(aEvent);
|
||||
}
|
||||
} // if = serviceID
|
||||
|
Reference in New Issue
Block a user