don't allow loopthrough to tuners, that already have other tuners connected to
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 17 Jul 2008 15:19:27 +0000 (15:19 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 17 Jul 2008 15:19:27 +0000 (15:19 +0000)
lib/python/Components/NimManager.py

index 650223d..350a6b1 100644 (file)
@@ -629,6 +629,13 @@ class NimManager:
                                if not (type == "DVB-S" and self.getNimType(slot)):
                                        if self.hasOutputs(slot):
                                                slots.append(slot)
+               # remove nims, that have a conntectedTo reference on
+               for testnim in slots[:]:
+                       for nim in self.getNimListOfType("DVB-S", slotid):
+                               nimConfig = self.getNimConfig(nim)
+                               if nimConfig.content.items.has_key("configMode") and nimConfig.configMode.value == "loopthrough" and int(nimConfig.connectedTo.value) == testnim:
+                                       slots.remove(testnim)
+                                       break 
                slots.sort()
                
                return slots