Code: Alles auswählen
Index: src/zapsi/pmt.cpp
===================================================================
RCS file: /cvs/tuxbox/apps/dvb/zapit/src/zapsi/pmt.cpp,v
retrieving revision 1.55
diff -u -r1.55 pmt.cpp
--- a/src/zapsi/pmt.cpp 11 Mar 2009 20:42:10 -0000 1.55
+++ b/src/zapsi/pmt.cpp 11 Apr 2009 12:37:13 -0000
@@ -349,6 +349,10 @@
unsigned char filter[DMX_FILTER_SIZE];
unsigned char mask[DMX_FILTER_SIZE];
+#ifndef SKIP_CA_STATUS
+ bool CaStatusSent = false;
+#endif
+
if (channel->getPmtPid() == 0)
return -1;
@@ -389,7 +393,9 @@
case 0x09:
caPmt->addCaDescriptor(buffer + i);
#ifndef SKIP_CA_STATUS
- eventServer->sendEvent(CZapitClient::EVT_ZAP_CA_LOCK, CEventServer::INITID_ZAPIT);
+ if (!CaStatusSent)
+ eventServer->sendEvent(CZapitClient::EVT_ZAP_CA_LOCK, CEventServer::INITID_ZAPIT);
+ CaStatusSent = true;
// INFO("Event_PMT: CA_LOCK send");
#endif
break;