X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Fdvb.cpp;h=5ebf10c25b2d8261982e8fdd9df49dc7ad3cd9dd;hp=852c4034aec4fae7f399ff982e71875fb21a649e;hb=HEAD;hpb=d8e08fe0a7304ed06b3de0b9ad6d4265ec8063b8 diff --git a/lib/dvb/dvb.cpp b/lib/dvb/dvb.cpp index 852c403..5ebf10c 100644 --- a/lib/dvb/dvb.cpp +++ b/lib/dvb/dvb.cpp @@ -414,6 +414,10 @@ bool eDVBResourceManager::frontendIsCompatible(int index, const char *type) { if (i->m_frontend->getSlotID() == index) { + if (!strcmp(type, "DVB-S2X")) + { + return i->m_frontend->supportsDeliverySystem(SYS_DVBS2X, false); + } if (!strcmp(type, "DVB-S2")) { return i->m_frontend->supportsDeliverySystem(SYS_DVBS2, false); @@ -443,6 +447,18 @@ bool eDVBResourceManager::frontendIsCompatible(int index, const char *type) return false; } +bool eDVBResourceManager::frontendIsMultistream(int index) +{ + for (eSmartPtrList::iterator i(m_frontend.begin()); i != m_frontend.end(); ++i) + { + if (i->m_frontend->getSlotID() == index) + { + return i->m_frontend->is_multistream(); + } + } + return false; +} + void eDVBResourceManager::setFrontendType(int index, const char *type) { eDebug("[eDVBResourceManager::setFrontendType] index : %d, type : %s", index, type); @@ -456,6 +472,8 @@ void eDVBResourceManager::setFrontendType(int index, const char *type) { whitelist.push_back(SYS_DVBS); whitelist.push_back(SYS_DVBS2); + if (!strcmp(type, "DVB-S2X")) + whitelist.push_back(SYS_DVBS2X); } else if (!strcmp(type, "DVB-T2") || !strcmp(type, "DVB-T")) {