if( (slot = getSlot(slotid)) == 0 )
return -1;
-
+
return slot->reset();
}
if( (slot = getSlot(slotid)) == 0 )
return -1;
-
+
+ if (enable)
+ {
+ slot->resetPrevSentCAPMTVersion();
+ PMTHandlerList::iterator it = m_pmt_handlers.begin();
+ while (it != m_pmt_handlers.end())
+ {
+ if ( it->cislot == slot )
+ slot->sendCAPMT(it->pmthandler); // send capmt
+ ++it;
+ }
+ }
+
return slot->enableTS(enable);
}
if( (slot = getSlot(slotid)) == 0 )
return -1;
-
+
+ slot->resetPrevSentCAPMTVersion();
+ PMTHandlerList::iterator it = m_pmt_handlers.begin();
+ while (it != m_pmt_handlers.end())
+ {
+ if ( it->cislot == slot )
+ slot->sendCAPMT(it->pmthandler); // send capmt
+ ++it;
+ }
+
return slot->initialize();
}
int eDVBCISlot::sendCAPMT(eDVBServicePMTHandler *pmthandler, const std::vector<uint16_t> &ids)
{
+ if (!ca_manager)
+ {
+ eDebug("no ca_manager (no CI plugged?)");
+ return -1;
+ }
const std::vector<uint16_t> &caids = ids.empty() && ca_manager ? ca_manager->getCAIDs() : ids;
ePtr<eTable<ProgramMapSection> > ptr;
if (pmthandler->getPMT(ptr))
hlen = 4;
}
// end calc capmt length
- if (!ca_manager)
- eDebug("no ca_manager !!! dump unfiltered capmt:");
- else
- eDebug("ca_manager %p dump capmt:", ca_manager);
+ eDebug("ca_manager %p dump capmt:", ca_manager);
for(int i=0;i<wp;i++)
eDebugNoNewLine("%02x ", raw_data[i]);
eDebug("");
#endif
- if (ca_manager)
- {
- //dont need tag and lenfield
- ca_manager->sendCAPMT(raw_data + hlen, wp - hlen);
- prev_sent_capmt_version = pmt_version;
- }
+ //dont need tag and lenfield
+ ca_manager->sendCAPMT(raw_data + hlen, wp - hlen);
+ prev_sent_capmt_version = pmt_version;
}
}
FILE *f;
if((f = fopen("/proc/stb/tsmux/input0", "wb")) == NULL) {
- printf("cannot open /proc/stb/audio/j1_mute\n");
+ printf("cannot open /proc/stb/tsmux/input0\n");
return 0;
}