Project

General

Profile

Bug #4794

PID 0 not set to UNUSED when filter removed

Added by Joe User over 4 years ago. Updated over 4 years ago.

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...

Associated revisions

Revision e42433ef (diff)
Added by Jaroslav Kysela over 4 years ago

descrambler: capmt - try to handle PAT pid (zero) more correctly, issue #4794

Revision 005f12ab (diff)
Added by Jaroslav Kysela over 4 years ago

descrambler: capmt - try to handle PAT pid (zero) more correctly, issue #4794

History

#1

Updated by Jaroslav Kysela over 4 years ago

Fixed and reviewed all pid == 0 situations. See associated revisions.

#2

Updated by Jaroslav Kysela over 4 years ago

  • Status changed from New to Fixed

Also available in: Atom PDF