1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 11:37:03 +00:00

Fix -t argument

This commit is contained in:
repojohnray 2023-01-13 01:44:37 +01:00
parent 31f9a001b1
commit 8a24ff583f
No known key found for this signature in database
GPG Key ID: 45E288320CD945F1

4
iptv.c
View File

@ -85,13 +85,13 @@ bool cPluginIptv::ProcessArgs(int argc, char *argv[])
}; };
int c; int c;
while ((c = getopt_long(argc, argv, "d:", long_options, NULL)) != -1) { while ((c = getopt_long(argc, argv, "d:t:", long_options, NULL)) != -1) {
switch (c) { switch (c) {
case 'd': case 'd':
deviceCountM = atoi(optarg); deviceCountM = atoi(optarg);
break; break;
case 't': case 't':
IptvConfig.SetTraceMode(strtol(optarg, NULL, 0)); IptvConfig.SetTraceMode(atoi(optarg));
break; break;
default: default:
return false; return false;