summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-12-24 10:30:35 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2003-12-24 10:30:35 +0100
commit6c4e6cc666da440c2f09e4cab9ab9b8ca99e5213 (patch)
tree318631b1603be9c5ae92d6a5338f72ec797c3f47 /dvbdevice.c
parent1d32f7c0597da0d773a8eb718a171ac6dacc73ad (diff)
downloadvdr-6c4e6cc666da440c2f09e4cab9ab9b8ca99e5213.tar.gz
vdr-6c4e6cc666da440c2f09e4cab9ab9b8ca99e5213.tar.bz2
Now the CA descriptors are sent to the CAM in the 'program' or 'ES level' sections
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 25c5fd96..76c3340b 100644
--- a/dvbdevice.c
+++ b/dvbdevice.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.c 1.74 2003/12/23 10:23:16 kls Exp $
+ * $Id: dvbdevice.c 1.75 2003/12/24 09:57:29 kls Exp $
*/
#include "dvbdevice.h"
@@ -273,19 +273,12 @@ void cDvbTuner::Action(void)
if (ciHandler->Process() && useCa) {
if (tunerStatus != tsCam) {//XXX TODO update in case the CA descriptors have changed
for (int Slot = 0; Slot < ciHandler->NumSlots(); Slot++) {
- uchar buffer[2048];
- int length = GetCaDescriptors(channel.Source(), channel.Frequency(), channel.Sid(), ciHandler->GetCaSystemIds(Slot), sizeof(buffer), buffer);
- if (length > 0) {
- cCiCaPmt CaPmt(channel.Sid());
- CaPmt.AddCaDescriptor(length, buffer);
- if (channel.Vpid())
- CaPmt.AddPid(channel.Vpid(), 2);
- if (channel.Apid1())
- CaPmt.AddPid(channel.Apid1(), 4);
- if (channel.Apid2())
- CaPmt.AddPid(channel.Apid2(), 4);
- if (channel.Dpid1())
- CaPmt.AddPid(channel.Dpid1(), 0);
+ cCiCaPmt CaPmt(channel.Source(), channel.Frequency(), channel.Sid(), ciHandler->GetCaSystemIds(Slot));
+ if (CaPmt.Valid()) {
+ CaPmt.AddPid(channel.Vpid(), 2);
+ CaPmt.AddPid(channel.Apid1(), 4);
+ CaPmt.AddPid(channel.Apid2(), 4);
+ CaPmt.AddPid(channel.Dpid1(), 0);
if (ciHandler->SetCaPmt(CaPmt, Slot)) {
tunerStatus = tsCam;
startTime = 0;