summaryrefslogtreecommitdiff
path: root/pat.c
diff options
context:
space:
mode:
authorTobias Grimm <tobias@e-tobi.loc>2009-04-25 19:56:42 +0200
committerTobias Grimm <tobias@e-tobi.loc>2009-06-20 18:17:43 +0200
commit61ea36dc9f402d0218d5cec06b0d583920509b68 (patch)
tree5f91dde7abedd32104bd9a8479ef78fbe7f9ebac /pat.c
parentb2285463adc98dd6a6770e6869fa849b3b711157 (diff)
downloadvdr-patches-61ea36dc9f402d0218d5cec06b0d583920509b68.tar.gz
vdr-patches-61ea36dc9f402d0218d5cec06b0d583920509b68.tar.bz2
ttxtsubs: Use the manual page number if available
Diffstat (limited to 'pat.c')
-rw-r--r--pat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pat.c b/pat.c
index d001633..2848822 100644
--- a/pat.c
+++ b/pat.c
@@ -13,6 +13,7 @@
#include "libsi/section.h"
#include "libsi/descriptor.h"
#include "thread.h"
+#include "vdrttxtsubshooks.h"
#define PMT_SCAN_TIMEOUT 10 // seconds
@@ -458,6 +459,15 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
}
if (Setup.UpdateChannels >= 2) {
Channel->SetPids(Vpid, Ppid, Vtype, Apids, ALangs, Dpids, DLangs, Spids, SLangs, Tpid);
+ if (NumTPages < MAXTPAGES) {
+ int manualPageNumber = cVDRTtxtsubsHookListener::Hook()->ManualPageNumber(Channel);
+ if (manualPageNumber) {
+ char *s = TLangs[NumTPages];
+ strn0cpy(s, "man", MAXLANGCODE1);
+ TPages[NumTPages] = manualPageNumber;
+ NumTPages++;
+ }
+ }
Channel->SetTPidData(TLangs, TPages);
Channel->SetCaIds(CaDescriptors->CaIds());
}