[dvbci] Change the location to add vtuner pid.
authorhschang <chang@dev3>
Tue, 20 Mar 2018 07:20:26 +0000 (16:20 +0900)
committerhschang <chang@dev3>
Tue, 20 Mar 2018 07:20:39 +0000 (16:20 +0900)
lib/dvb_ci/dvbci.cpp

index 1419e97..a66ce8f 100644 (file)
@@ -398,7 +398,6 @@ void eDVBCIInterfaces::recheckPMTHandlers()
                                                        eDebug("The CI in Slot %d has said it can handle caid %04x... so use it", ci_it->getSlotID(), *z);
                                                        useThis = true;
                                                        user_mapped = false;
                                                        eDebug("The CI in Slot %d has said it can handle caid %04x... so use it", ci_it->getSlotID(), *z);
                                                        useThis = true;
                                                        user_mapped = false;
-                                                       ci_it->addVtunerPid(pmthandler);
                                                        break;
                                                }
                                        }
                                                        break;
                                                }
                                        }
@@ -407,6 +406,7 @@ void eDVBCIInterfaces::recheckPMTHandlers()
 
                        if (useThis)
                        {
 
                        if (useThis)
                        {
+                               ci_it->addVtunerPid(pmthandler);
                                // check if this CI is already assigned to this pmthandler
                                eDVBCISlot *tmp = it->cislot;
                                while(tmp)
                                // check if this CI is already assigned to this pmthandler
                                eDVBCISlot *tmp = it->cislot;
                                while(tmp)