diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-11-13 08:57:45 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-11-13 08:57:45 +0000 |
| commit | 3d5ee66a7e80c61e431e74e821242e144e88f008 (patch) | |
| tree | af62b4ef7d8a8482011e65b3f314a64372d913bb /lib/dvb | |
| parent | 8abe6bd8b06640ce47fc26f2786801106536c96e (diff) | |
| download | enigma2-3d5ee66a7e80c61e431e74e821242e144e88f008.tar.gz enigma2-3d5ee66a7e80c61e431e74e821242e144e88f008.zip | |
dont open epglist when no epg is avail
Diffstat (limited to 'lib/dvb')
| -rw-r--r-- | lib/dvb/epgcache.cpp | 8 | ||||
| -rw-r--r-- | lib/dvb/epgcache.h | 4 |
2 files changed, 2 insertions, 10 deletions
diff --git a/lib/dvb/epgcache.cpp b/lib/dvb/epgcache.cpp index 7b94a1a7..c1f294a6 100644 --- a/lib/dvb/epgcache.cpp +++ b/lib/dvb/epgcache.cpp @@ -747,14 +747,6 @@ void eEPGCache::save() #endif } -RESULT eEPGCache::getInstance(eEPGCache *&ptr) -{ - ptr = instance; - if (!ptr) - return -1; - return 0; -} - eEPGCache::channel_data::channel_data(eEPGCache *ml) :cache(ml) ,abortTimer(ml), zapTimer(ml) diff --git a/lib/dvb/epgcache.h b/lib/dvb/epgcache.h index 5643fa43..aa0410b3 100644 --- a/lib/dvb/epgcache.h +++ b/lib/dvb/epgcache.h @@ -223,7 +223,7 @@ private: timeMap::iterator m_timemap_cursor, m_timemap_end; #endif // SWIG public: - static RESULT getInstance(eEPGCache *&ptr); + static eEPGCache *getInstance() { return instance; } eEPGCache(); ~eEPGCache(); @@ -257,7 +257,7 @@ public: // eServiceEvent are parsed epg events.. it's safe to use them after cache unlock // for use from python ( members: m_start_time, m_duration, m_short_description, m_extended_description ) RESULT lookupEvent(const eServiceReference &service, int event_id, ePtr<eServiceEvent> &); - RESULT lookupEvent(const eServiceReference &service, time_t , ePtr<eServiceEvent> &); + RESULT lookupEvent(const eServiceReference &service, time_t, ePtr<eServiceEvent> &); RESULT getNextTimeEntry(ePtr<eServiceEvent> &); }; |
