aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb_ci
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-03-03 11:50:53 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-03-03 11:50:53 +0100
commit6f2cf5c74f32e7aa8fea4ce93a6b0963f78fedd5 (patch)
tree6cd7768fceec01431bf707769898c1e89107f8a1 /lib/dvb_ci
parent23d87e80ac74cea3df87ac89cef734509341fa98 (diff)
downloadenigma2-6f2cf5c74f32e7aa8fea4ce93a6b0963f78fedd5.tar.gz
enigma2-6f2cf5c74f32e7aa8fea4ce93a6b0963f78fedd5.zip
take care of subservices
Diffstat (limited to 'lib/dvb_ci')
-rw-r--r--lib/dvb_ci/dvbci.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/dvb_ci/dvbci.cpp b/lib/dvb_ci/dvbci.cpp
index c34ea0c0..a68edea8 100644
--- a/lib/dvb_ci/dvbci.cpp
+++ b/lib/dvb_ci/dvbci.cpp
@@ -332,6 +332,20 @@ void eDVBCIInterfaces::recheckPMTHandlers()
eDebug("'%s' is in service list of slot %d... so use it", ref.toString().c_str(), ci_it->getSlotID());
useThis = true;
}
+ else // check parent
+ {
+ eServiceReferenceDVB parent_ref = ref.getParentServiceReference();
+ if (parent_ref)
+ {
+ it = ci_it->possible_services.find(ref);
+ if (it != ci_it->possible_services.end())
+ {
+ eDebug("parent '%s' of '%s' is in service list of slot %d... so use it",
+ parent_ref.toString().c_str(), ref.toString().c_str(), ci_it->getSlotID());
+ useThis = true;
+ }
+ }
+ }
}
if (!useThis && !ci_it->possible_providers.empty())
{
@@ -354,6 +368,7 @@ void eDVBCIInterfaces::recheckPMTHandlers()
}
if (!useThis && !ci_it->possible_caids.empty())
{
+ mask |= 4;
for (CAID_LIST::iterator ca(caids.begin()); ca != caids.end(); ++ca)
{
caidSet::iterator it = ci_it->possible_caids.find(*ca);