summaryrefslogtreecommitdiff
path: root/pat.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-01-04 11:17:24 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-01-04 11:17:24 +0100
commit7cbced0c124a2d03290d82953c09f199602b1f7f (patch)
tree52ef4733bed92cf9d834f359ecb769e97d14ae69 /pat.c
parenta84defe86f2331d42c06abeba17fd4aebe359d94 (diff)
downloadvdr-7cbced0c124a2d03290d82953c09f199602b1f7f.tar.gz
vdr-7cbced0c124a2d03290d82953c09f199602b1f7f.tar.bz2
Made GetCaDescriptors() and GetCaPids() return all values if CaSystemIds is 0xFFFF
Diffstat (limited to 'pat.c')
-rw-r--r--pat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pat.c b/pat.c
index 9f5f12de..5246e074 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 3.1 2014/01/01 12:02:39 kls Exp $
+ * $Id: pat.c 3.2 2014/01/04 11:17:24 kls Exp $
*/
#include "pat.h"
@@ -167,7 +167,7 @@ int cCaDescriptors::GetCaDescriptors(const int *CaSystemIds, int BufSize, uchar
if (EsPid < 0 || d->EsPid() == EsPid) {
const int *caids = CaSystemIds;
do {
- if (d->CaSystem() == *caids) {
+ if (*caids == 0xFFFF || d->CaSystem() == *caids) {
if (length + d->Length() <= BufSize) {
memcpy(Data + length, d->Data(), d->Length());
length += d->Length();
@@ -192,7 +192,7 @@ int cCaDescriptors::GetCaPids(const int *CaSystemIds, int BufSize, int *Pids)
for (cCaDescriptor *d = caDescriptors.First(); d; d = caDescriptors.Next(d)) {
const int *caids = CaSystemIds;
do {
- if (d->CaSystem() == *caids) {
+ if (*caids == 0xFFFF || d->CaSystem() == *caids) {
if (numPids + 1 < BufSize) {
Pids[numPids++] = d->CaPid();
Pids[numPids] = 0;