Browse Source

Report EMM caid/pid when they are available or when CAT is changed.

Georgi Chorbadzhiyski 12 years ago
parent
commit
d620f91895
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      tables.c

+ 7
- 0
tables.c View File

@@ -49,6 +49,13 @@ void process_cat(struct ts *ts, uint16_t pid, uint8_t *ts_packet) {
49 49
 	handle_table_changes(cat);
50 50
 
51 51
 	ts_get_emm_info(ts->cat, ts->req_CA_sys, &ts->emm_caid, &ts->emm_pid);
52
+	if (ts->emm_caid) {
53
+		char *CA_sys = ts_get_CA_sys_txt(ts_get_CA_sys(ts->emm_caid));
54
+		ts_LOGf("--- | EMM CAID: 0x%04x (%s)\n", ts->emm_caid, CA_sys);
55
+		ts_LOGf("--- | EMM pid : 0x%04x (%s)\n", ts->emm_pid, CA_sys);
56
+	} else {
57
+		ts_LOGf("*** | ERROR: Can't detect EMM pid.\n");
58
+	}
52 59
 }
53 60
 
54 61
 void process_pmt(struct ts *ts, uint16_t pid, uint8_t *ts_packet) {

Loading…
Cancel
Save