fix eEPGCache::search
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 2 Oct 2006 14:24:53 +0000 (14:24 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 2 Oct 2006 14:24:53 +0000 (14:24 +0000)
lib/dvb/epgcache.cpp

index b8a5c08d3bd5edc0cb826acf1af17345c33720d1..4f365e78aef3c172243d34da844755a8d023d4ee 100644 (file)
@@ -2126,7 +2126,8 @@ PyObject *eEPGCache::search(PyObject *arg)
                        // check all events
                        for (timeMap::iterator evit(evmap.begin()); evit != evmap.end() && maxcount; ++evit)
                        {
-                               if (evit->second->getEventID() == eventid)
+                               int evid = evit->second->getEventID();
+                               if ( evid == eventid)
                                        continue;
                                __u8 *data = evit->second->EITdata;
                                int tmp = evit->second->ByteSize-12;
@@ -2155,7 +2156,7 @@ PyObject *eEPGCache::search(PyObject *arg)
                                                ePtr<eServiceEvent> ptr;
                                                if (needServiceEvent)
                                                {
-                                                       lookupEventId(ref, evit->first, ptr);
+                                                       lookupEventId(ref, evid, ptr);
                                                        if (!ptr)
                                                                eDebug("event not found !!!!!!!!!!!");
                                                }