summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoretobi <git@e-tobi.net>2010-02-14 01:30:34 +0100
committeretobi <git@e-tobi.net>2010-03-06 12:07:53 +0100
commit5f0ee2041702bfd3fe49f8f27435d6326fa109ab (patch)
tree3d7ec4c66a9b6098ed77ba189e441dedb78530ec
parent19e71eee0866619d5447c999a60a0fc2afdfe1ac (diff)
downloadvdr-patches-5f0ee2041702bfd3fe49f8f27435d6326fa109ab.tar.gz
vdr-patches-5f0ee2041702bfd3fe49f8f27435d6326fa109ab.tar.bz2
Decrypt teletext stream
-rw-r--r--ci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ci.c b/ci.c
index 6c7b031..22fda9f 100644
--- a/ci.c
+++ b/ci.c
@@ -1911,6 +1911,8 @@ void cCamSlot::AddChannel(const cChannel *Channel)
AddPid(Channel->Sid(), *Apid, STREAM_TYPE_AUDIO);
for (const int *Dpid = Channel->Dpids(); *Dpid; Dpid++)
AddPid(Channel->Sid(), *Dpid, STREAM_TYPE_DOLBY);
+ if (Channel->Tpid() && Setup.SupportTeletext)
+ AddPid(Channel->Sid(), Channel->Tpid(), STREAM_TYPE_DOLBY);
}
}
@@ -1932,6 +1934,9 @@ bool cCamSlot::CanDecrypt(const cChannel *Channel)
CaPmt.AddPid(*Apid, STREAM_TYPE_AUDIO);
for (const int *Dpid = Channel->Dpids(); *Dpid; Dpid++)
CaPmt.AddPid(*Dpid, STREAM_TYPE_DOLBY);
+ if (Channel->Tpid() && Setup.SupportTeletext) {
+ CaPmt.AddPid(Channel->Tpid(), STREAM_TYPE_DOLBY); // FIXME: STREAM_TYPE_DOLBY should probably be renamed STREAM_TYPE_PRIVATE
+ }
cas->SendPMT(&CaPmt);
cTimeMs Timeout(QUERY_REPLY_TIMEOUT);
do {