git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove unneeded caching of caids, use an array for pidcache instead of std::map ...
[enigma2.git]
/
lib
/
dvb
/
idvb.h
diff --git
a/lib/dvb/idvb.h
b/lib/dvb/idvb.h
index 060804299d2152741a58eb9818dee899b5c76122..ecf8bb92e1f331266195440c290b01b3f0ef05aa 100644
(file)
--- a/
lib/dvb/idvb.h
+++ b/
lib/dvb/idvb.h
@@
-223,12
+223,13
@@
class eDVBService: public iStaticServiceInformation
public:
enum cacheID
{
public:
enum cacheID
{
- cVPID, cAPID, cTPID, cPCRPID, cAC3PID, cacheMax
+ cVPID, cAPID, cTPID, cPCRPID, cAC3PID, c
VTYPE, c
acheMax
};
int getCachePID(cacheID);
void setCachePID(cacheID, int);
};
int getCachePID(cacheID);
void setCachePID(cacheID, int);
- bool cacheEmpty() { return m_cache.empty(); }
+
+ bool cacheEmpty();
eDVBService();
/* m_service_name_sort is uppercase, with special chars removed, to increase sort performance. */
eDVBService();
/* m_service_name_sort is uppercase, with special chars removed, to increase sort performance. */
@@
-249,8
+250,9
@@
public:
bool usePMT() const { return !(m_flags & dxNoDVB); }
bool usePMT() const { return !(m_flags & dxNoDVB); }
- std::set<int> m_ca;
- std::map<int,int> m_cache;
+// std::set<int> m_ca;
+
+ int m_cache[cacheMax];
virtual ~eDVBService();
eDVBService &operator=(const eDVBService &);
virtual ~eDVBService();
eDVBService &operator=(const eDVBService &);
@@
-572,8
+574,8
@@
class iTSMPEGDecoder: public iObject
{
public:
enum { pidDisabled = -1 };
{
public:
enum { pidDisabled = -1 };
- /** Set Displayed Video PID */
- virtual RESULT setVideoPID(int vpid)=0;
+ /** Set Displayed Video PID
and type
*/
+ virtual RESULT setVideoPID(int vpid
, int type
)=0;
enum { af_MPEG, af_AC3, af_DTS };
/** Set Displayed Audio PID and type */
enum { af_MPEG, af_AC3, af_DTS };
/** Set Displayed Audio PID and type */