minisatip8: ignore wrong PIDs (VDR sends PID 65535!)
This commit is contained in:
parent
dbce4ca82b
commit
e983b7d842
@ -32,7 +32,7 @@ index 8812322..519f3da 100755
|
|||||||
myTable += "<td class='dt-right'>" + state['ad_axe_pktc'][i] + " </td>";
|
myTable += "<td class='dt-right'>" + state['ad_axe_pktc'][i] + " </td>";
|
||||||
myTable += "<td class='dt-right'>" + state['ad_axe_ccerr'][i] + " </td>";
|
myTable += "<td class='dt-right'>" + state['ad_axe_ccerr'][i] + " </td>";
|
||||||
diff --git a/src/adapter.c b/src/adapter.c
|
diff --git a/src/adapter.c b/src/adapter.c
|
||||||
index e034e3e..42a98b3 100644
|
index e034e3e..319591e 100644
|
||||||
--- a/src/adapter.c
|
--- a/src/adapter.c
|
||||||
+++ b/src/adapter.c
|
+++ b/src/adapter.c
|
||||||
@@ -75,6 +75,7 @@ adapter *adapter_alloc()
|
@@ -75,6 +75,7 @@ adapter *adapter_alloc()
|
||||||
@ -115,7 +115,7 @@ index e034e3e..42a98b3 100644
|
|||||||
for (i = 0; i < la; i++)
|
for (i = 0; i < la; i++)
|
||||||
{
|
{
|
||||||
pid = map_int(arg[i], NULL);
|
pid = map_int(arg[i], NULL);
|
||||||
@@ -1146,7 +1152,7 @@ int mark_pids_add(int sid, int aid, char *pids)
|
@@ -1146,11 +1152,11 @@ int mark_pids_add(int sid, int aid, char *pids)
|
||||||
LOG("adding pids to adapter %d, sid %d, pids=%s", aid, sid,
|
LOG("adding pids to adapter %d, sid %d, pids=%s", aid, sid,
|
||||||
pids ? pids : "NULL");
|
pids ? pids : "NULL");
|
||||||
|
|
||||||
@ -124,6 +124,11 @@ index e034e3e..42a98b3 100644
|
|||||||
for (i = 0; i < la; i++)
|
for (i = 0; i < la; i++)
|
||||||
{
|
{
|
||||||
pid = map_intd(arg[i], NULL, -1);
|
pid = map_intd(arg[i], NULL, -1);
|
||||||
|
- if (pid == -1)
|
||||||
|
+ if (pid < 0 || pid > 8182)
|
||||||
|
continue;
|
||||||
|
if (mark_pid_add(sid, aid, pid) < 0)
|
||||||
|
return -1;
|
||||||
@@ -1165,11 +1171,11 @@ int compare_tunning_parameters(int aid, transponder *tp)
|
@@ -1165,11 +1171,11 @@ int compare_tunning_parameters(int aid, transponder *tp)
|
||||||
if (!ad)
|
if (!ad)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user