]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
cwc: ECM section filtering is in descrambler.c, remove it from cwc
authorJaroslav Kysela <perex@perex.cz>
Fri, 19 Sep 2014 12:02:25 +0000 (14:02 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 19 Sep 2014 12:02:25 +0000 (14:02 +0200)
src/descrambler/cwc.c

index a260cda8c95801dd9e7c88d9e0b9fb358eb8337c..0f70fc88ed12439d065208e37d42cef0b6b3e5c9 100755 (executable)
@@ -113,8 +113,6 @@ typedef struct ecm_section {
   char es_pending;
   char es_resolved;
   int64_t es_time;  // time request was sent
-  size_t es_ecmsize;
-  uint8_t es_ecm[4070];
 
 } ecm_section_t;
 
@@ -1790,9 +1788,6 @@ cwc_table_input(void *opaque, int pid, const uint8_t *data, int len)
         LIST_INSERT_HEAD(&ep->ep_sections, es, es_link);
       }
 
-      if(es->es_ecmsize == len && !memcmp(es->es_ecm, data, len))
-        break; /* key already sent */
-
       if(cwc->cwc_fd == -1) {
         // New key, but we are not connected (anymore), can not descramble
         ct->td_keystate = DS_UNKNOWN;
@@ -1806,9 +1801,6 @@ cwc_table_input(void *opaque, int pid, const uint8_t *data, int len)
       es->es_pending = 1;
       es->es_resolved = 0;
 
-      memcpy(es->es_ecm, data, len);
-      es->es_ecmsize = len;
-
       if(ct->cs_channel >= 0 && channel != -1 &&
          ct->cs_channel != channel) {
         tvhlog(LOG_DEBUG, "cwc", "Filtering ECM (PID %d)", channel);