aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/sec.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-07-17 14:57:23 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-07-17 14:57:23 +0000
commit837d2002999d5ff89bc60e9e5c35d16e7efe084c (patch)
tree8f23865b472bfb0c8f684a15f639587267731ebe /lib/dvb/sec.cpp
parent9063d6049a81d8945126c66e0a12ce8b5a64b4a1 (diff)
downloadenigma2-837d2002999d5ff89bc60e9e5c35d16e7efe084c.tar.gz
enigma2-837d2002999d5ff89bc60e9e5c35d16e7efe084c.zip
fix linking tuners
Diffstat (limited to 'lib/dvb/sec.cpp')
-rw-r--r--lib/dvb/sec.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/dvb/sec.cpp b/lib/dvb/sec.cpp
index 10b362ab..5c0601ad 100644
--- a/lib/dvb/sec.cpp
+++ b/lib/dvb/sec.cpp
@@ -849,7 +849,7 @@ RESULT eDVBSatelliteEquipmentControl::addLNB()
eDebug("no more LNB free... cnt is %d", m_lnbidx);
return -ENOSPC;
}
- eSecDebug("eDVBSatelliteEquipmentControl::addLNB(%d)", m_lnbidx-1);
+ eSecDebug("eDVBSatelliteEquipmentControl::addLNB(%d)", m_lnbidx);
return 0;
}
@@ -1260,12 +1260,11 @@ RESULT eDVBSatelliteEquipmentControl::setTunerLinked(int tu1, int tu2)
{
eDVBRegisteredFrontend *p1=NULL, *p2=NULL;
- int cnt=0;
- for (eSmartPtrList<eDVBRegisteredFrontend>::iterator it(m_avail_frontends.begin()); it != m_avail_frontends.end(); ++it, ++cnt)
+ for (eSmartPtrList<eDVBRegisteredFrontend>::iterator it(m_avail_frontends.begin()); it != m_avail_frontends.end(); ++it)
{
- if (cnt == tu1)
+ if (it->m_frontend->getSlotID() == tu1)
p1 = *it;
- else if (cnt == tu2)
+ else if (it->m_frontend->getSlotID() == tu2)
p2 = *it;
}
if (p1 && p2)
@@ -1297,12 +1296,11 @@ RESULT eDVBSatelliteEquipmentControl::setTunerDepends(int tu1, int tu2)
eDVBRegisteredFrontend *p1=NULL, *p2=NULL;
- int cnt=0;
- for (eSmartPtrList<eDVBRegisteredFrontend>::iterator it(m_avail_frontends.begin()); it != m_avail_frontends.end(); ++it, ++cnt)
+ for (eSmartPtrList<eDVBRegisteredFrontend>::iterator it(m_avail_frontends.begin()); it != m_avail_frontends.end(); ++it)
{
- if (cnt == tu1)
+ if (it->m_frontend->getSlotID() == tu1)
p1 = *it;
- else if (cnt == tu2)
+ else if (it->m_frontend->getSlotID() == tu2)
p2 = *it;
}
if (p1 && p2)