]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
capmt: fix the PMT request (adapter)
authorJaroslav Kysela <perex@perex.cz>
Thu, 25 May 2017 12:20:15 +0000 (14:20 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 25 May 2017 12:40:01 +0000 (14:40 +0200)
src/descrambler/capmt.c

index 22d2c380e68d137e33893b33a7ed7b16fc3cf5ff..e4c65cd3d4a7a25de8c586229140c956cbfa3914 100644 (file)
@@ -97,7 +97,7 @@ typedef struct dmx_filter {
 #define CAPMT_LIST_UPDATE  0x05    // replace an entry in the list with an 'UPDATE' CAPMT object, and start working with the updated list
 
 // ca_pmt_descriptor types
-#define CAPMT_DESC_PRIVATE 0x81
+#define CAPMT_DESC_ENIGMA  0x81
 #define CAPMT_DESC_DEMUX   0x82
 #define CAPMT_DESC_PID     0x84
 
@@ -1995,8 +1995,8 @@ capmt_send_request(capmt_service_t *ct, int lm)
   capmt->capmt_pmtversion = (capmt->capmt_pmtversion + 1) & 0x1F;
   buf[pos++] = 0; /* room for length - program info tags */
   buf[pos++] = 0; /* room for length - program info tags */
-  if (!capmt_oscam_new(capmt))
-    buf[pos++] = 1; /* OK DESCRAMBLING */
+  buf[pos++] = 1; /* OK DESCRAMBLING, skipped for parse_descriptors, but */
+                  /* mandatory for getDemuxOptions() */
 
   /* build program info tags */
 
@@ -2009,7 +2009,7 @@ capmt_send_request(capmt_service_t *ct, int lm)
   }
 
   /* build SI tag */
-  buf[pos++] = CAPMT_DESC_PRIVATE;
+  buf[pos++] = CAPMT_DESC_ENIGMA;
   buf[pos++] = 8;
   buf[pos++] = 0; /* enigma namespace goes here */
   buf[pos++] = 0; /* enigma namespace goes here */