|
@@ -77,7 +77,6 @@ static const struct option long_options[] = {
|
77
|
77
|
{ "camd-server", required_argument, NULL, 's' },
|
78
|
78
|
{ "camd-user", required_argument, NULL, 'U' },
|
79
|
79
|
{ "camd-pass", required_argument, NULL, 'P' },
|
80
|
|
- { "camd-pkt-delay", required_argument, NULL, 'y' },
|
81
|
80
|
|
82
|
81
|
{ "emm", no_argument, NULL, 'e' },
|
83
|
82
|
{ "emm-pid", required_argument, NULL, 'Z' },
|
|
@@ -141,8 +140,6 @@ static void show_help(struct ts *ts) {
|
141
|
140
|
printf(" -s --camd-server <addr> | Set CAMD server ip address and port (1.2.3.4:2233).\n");
|
142
|
141
|
printf(" -U --camd-user <user> | Set CAMD server user. Default: %s\n", ts->camd35.user);
|
143
|
142
|
printf(" -P --camd-pass <pass> | Set CAMD server password. Default: %s\n", ts->camd35.pass);
|
144
|
|
- printf(" -y --camd-pkt-delay <us> | Sleep <us> usec between sending ECM/EMM\n");
|
145
|
|
- printf(" . packets to CAMD. Default: %d\n", ts->packet_delay);
|
146
|
143
|
printf("\n");
|
147
|
144
|
printf("EMM options:\n");
|
148
|
145
|
printf(" -e --emm | Enable sending EMM's to CAMD. Default: %s\n", ts->emm_send ? "enabled" : "disabled");
|
|
@@ -304,11 +301,6 @@ static void parse_options(struct ts *ts, int argc, char **argv) {
|
304
|
301
|
strncpy(ts->camd35.pass, optarg, sizeof(ts->camd35.pass) - 1);
|
305
|
302
|
ts->camd35.pass[sizeof(ts->camd35.pass) - 1] = 0;
|
306
|
303
|
break;
|
307
|
|
- case 'y':
|
308
|
|
- ts->packet_delay = atoi(optarg);
|
309
|
|
- if (ts->packet_delay < 0 || ts->packet_delay > 1000000)
|
310
|
|
- ts->packet_delay = 0;
|
311
|
|
- break;
|
312
|
304
|
|
313
|
305
|
case 'e':
|
314
|
306
|
ts->emm_send = !ts->emm_send;
|
|
@@ -429,8 +421,7 @@ static void parse_options(struct ts *ts, int argc, char **argv) {
|
429
|
421
|
ts_LOGf("Server addr: tcp://%s:%u/\n", inet_ntoa(ts->camd35.server_addr), ts->camd35.server_port);
|
430
|
422
|
ts_LOGf("Server user: %s\n", ts->camd35.user);
|
431
|
423
|
ts_LOGf("Server pass: %s\n", ts->camd35.pass);
|
432
|
|
- if (ts->packet_delay)
|
433
|
|
- ts_LOGf("Pkt sleep : %d us (%d ms)\n", ts->packet_delay, ts->packet_delay / 1000);
|
|
424
|
+
|
434
|
425
|
ts_LOGf("TS discont : %s\n", ts->ts_discont ? "report" : "ignore");
|
435
|
426
|
ts->threaded = !(ts->input.type == FILE_IO && ts->input.fd != 0);
|
436
|
427
|
if (ts->emm_send && ts->emm_report_interval)
|