aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/db.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-08-15 23:46:05 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-08-15 23:46:05 +0000
commit8aabe6351fdaff2bd5529be670846357e221a16a (patch)
treee664fa0bd656a09c89f25336952d6b552d90db99 /lib/dvb/db.cpp
parent7544e052e6ed6a5d1e0fd783bd04f4b8aa0d45ce (diff)
downloadenigma2-8aabe6351fdaff2bd5529be670846357e221a16a.tar.gz
enigma2-8aabe6351fdaff2bd5529be670846357e221a16a.zip
add pid cache
Diffstat (limited to 'lib/dvb/db.cpp')
-rw-r--r--lib/dvb/db.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/dvb/db.cpp b/lib/dvb/db.cpp
index cdc05fcb..92293b7e 100644
--- a/lib/dvb/db.cpp
+++ b/lib/dvb/db.cpp
@@ -74,6 +74,19 @@ int eDVBService::checkFilter(const eServiceReferenceDVB &ref, const eDVBChannelQ
return res;
}
+int eDVBService::getCachePID(cacheID id)
+{
+ std::map<int, int>::iterator it = m_cache.find(id);
+ if ( it != m_cache.end() )
+ return it->second;
+ return -1;
+}
+
+void eDVBService::setCachePID(cacheID id, int pid)
+{
+ m_cache[id] = pid;
+}
+
DEFINE_REF(eDVBDB);
eDVBDB::eDVBDB()