|
@@ -74,6 +74,7 @@ static const struct option long_options[] = {
|
74
|
74
|
|
75
|
75
|
{ "ecm-pid", required_argument, NULL, 'X' },
|
76
|
76
|
{ "ecm-irdeto-type", required_argument, NULL, 'G' },
|
|
77
|
+ { "ecm-no-log", no_argument , NULL, 'K' },
|
77
|
78
|
|
78
|
79
|
{ "debug", required_argument, NULL, 'D' },
|
79
|
80
|
{ "help", no_argument, NULL, 'h' },
|
|
@@ -133,6 +134,7 @@ static void show_help(struct ts *ts) {
|
133
|
134
|
printf("ECM options:\n");
|
134
|
135
|
printf(" -X --ecm-pid <pid> | Force ECM pid. Default: none\n");
|
135
|
136
|
printf(" -G --ecm-irdeto-type <int> | Process IRDETO ECMs with type X /0..3/. Default: %d\n", ts->irdeto_ecm);
|
|
137
|
+ printf(" -K --ecm-no-log | Disable ECM and code words logging.\n");
|
136
|
138
|
printf("\n");
|
137
|
139
|
printf("Misc options:\n");
|
138
|
140
|
printf(" -D --debug <level> | Message debug level.\n");
|
|
@@ -170,7 +172,7 @@ static int parse_io_param(struct io *io, char *opt, int open_flags, mode_t open_
|
170
|
172
|
|
171
|
173
|
static void parse_options(struct ts *ts, int argc, char **argv) {
|
172
|
174
|
int j, i, ca_err = 0, server_err = 1, input_addr_err = 0, output_addr_err = 0, output_intf_err = 0, ident_err = 0;
|
173
|
|
- while ( (j = getopt_long(argc, argv, "i:d:l:L:I:RzO:o:t:pc:s:U:P:y:eZ:Ef:X:G:D:h", long_options, NULL)) != -1 ) {
|
|
175
|
+ while ( (j = getopt_long(argc, argv, "i:d:l:L:I:RzO:o:t:pc:s:U:P:y:eZ:Ef:X:G:KD:h", long_options, NULL)) != -1 ) {
|
174
|
176
|
char *p = NULL;
|
175
|
177
|
switch (j) {
|
176
|
178
|
case 'i':
|
|
@@ -287,6 +289,9 @@ static void parse_options(struct ts *ts, int argc, char **argv) {
|
287
|
289
|
case 'G':
|
288
|
290
|
ts->irdeto_ecm = atoi(optarg);
|
289
|
291
|
break;
|
|
292
|
+ case 'K':
|
|
293
|
+ ts->ecm_cw_log = 0;
|
|
294
|
+ break;
|
290
|
295
|
|
291
|
296
|
case 'D':
|
292
|
297
|
ts->debug_level = atoi(optarg);
|
|
@@ -373,6 +378,9 @@ static void parse_options(struct ts *ts, int argc, char **argv) {
|
373
|
378
|
ts_LOGf("Decoding : %s\n", ts->threaded ? "threaded" : "single thread");
|
374
|
379
|
}
|
375
|
380
|
|
|
381
|
+ if (!ts->ecm_cw_log)
|
|
382
|
+ ts_LOGf("ECM/CW log : disabled\n");
|
|
383
|
+
|
376
|
384
|
for (i=0; i<(int)sizeof(ts->ident); i++) {
|
377
|
385
|
if (!ts->ident[i])
|
378
|
386
|
break;
|