summaryrefslogtreecommitdiff
path: root/pat.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-01-27 15:53:08 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-01-27 15:53:08 +0100
commit7398125f317987197b653638517f98f877511513 (patch)
tree29d0010166d13179c932a6ec7e600a5c24b1614c /pat.c
parent8ab2383e18139b8250ace271f4c73d75aae436a6 (diff)
downloadvdr-7398125f317987197b653638517f98f877511513.tar.gz
vdr-7398125f317987197b653638517f98f877511513.tar.bz2
Now checking whether the channel exists before setting the PMT filter in cPatFilter::Process()
Diffstat (limited to 'pat.c')
-rw-r--r--pat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pat.c b/pat.c
index 83031db4..a7216b8c 100644
--- a/pat.c
+++ b/pat.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: pat.c 1.14 2005/09/04 14:32:39 kls Exp $
+ * $Id: pat.c 1.15 2006/01/27 15:48:29 kls Exp $
*/
#include "pat.h"
@@ -287,7 +287,7 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
int Index = 0;
for (SI::Loop::Iterator it; pat.associationLoop.getNext(assoc, it); ) {
if (!assoc.isNITPid()) {
- if (Index++ == pmtIndex) {
+ if (Index++ >= pmtIndex && Channels.GetByServiceID(Source(), Transponder(), assoc.getServiceId())) {
pmtPid = assoc.getPid();
Add(pmtPid, 0x02);
break;