Bug #4794
PID 0 not set to UNUSED when filter removed
Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Descrambling
Target version:
-
Start date:
2017-12-14
Due date:
% Done:
0%
Estimated time:
Found in version:
4.3-777~gc625df2
Affected Versions:
Description
Probably not a problem if previous bug is fixed, but still could be an issue.
diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index 6f41263..ab31352 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -404,7 +404,7 @@ capmt_pid_remove(capmt_t *capmt, int adapter, int pid, uint32_t flags) lock_assert(&capmt->capmt_mutex); - if (pid <= 0) + if (pid < 0) return; for (i = 0; i < MAX_PIDS; i++) { o = &ca->ca_pids[i];
see here: [[http://tvheadend.org/issues/4788#note-4]]
Note: this was included for last "bug" [[http://tvheadend.org/issues/4793]] but wanted to point it out specifically...
History
Updated by Jaroslav Kysela almost 7 years ago
Fixed and reviewed all pid == 0 situations. See associated revisions.