Project

General

Profile

Bug #5649 ยป a.patch

Jaroslav Kysela, 2019-06-09 17:22

View differences:

src/descrambler/capmt.c
254 254
  int   capmt_port;
255 255
  int   capmt_oscam;
256 256
  int   capmt_cwmode;
257
  int   capmt_oscam_rev;
257 258

  
258 259
  /* capmt sockets */
259 260
  int   sids[MAX_SOCKETS];
......
1502 1503
    uint16_t protover = sbuf_peek_u16(sb, offset);
1503 1504
    int offset2       = offset + 2;
1504 1505
    char *info        = capmt_peek_str(sb, &offset2);
1506
    char *rev         = info ? strstr(info, "build r") : NULL;
1505 1507

  
1506 1508
    tvhinfo(LS_CAPMT, "%s: Connected to server '%s' (protocol version %d)", capmt_name(capmt), info, protover);
1509
    if (rev)
1510
      capmt->capmt_oscam_rev = strtol(rev + 7, NULL, 10);
1507 1511

  
1508 1512
    free(info);
1509 1513

  
......
2219 2223
  uint16_t onid = t->s_dvb_mux->mm_onid;
2220 2224
  const int adapter_num = ct->ct_adapter;
2221 2225
  const int wrapper = capmt_oscam_so_wrapper(capmt);
2222
  const int pc_desc = !wrapper && adapter_num >= 8;
2226
  const int pc_desc = (!wrapper && adapter_num >= 8) ||
2227
                      capmt->capmt_oscam_rev >= 11396;
2223 2228
  int i;
2224 2229

  
2225 2230
  /* buffer for capmt */
    (1-1/1)