diff options
author | Tobias Grimm <tobias@e-tobi.loc> | 2009-04-25 19:56:42 +0200 |
---|---|---|
committer | Tobias Grimm <tobias@e-tobi.loc> | 2009-06-20 18:17:43 +0200 |
commit | 61ea36dc9f402d0218d5cec06b0d583920509b68 (patch) | |
tree | 5f91dde7abedd32104bd9a8479ef78fbe7f9ebac /pat.c | |
parent | b2285463adc98dd6a6770e6869fa849b3b711157 (diff) | |
download | vdr-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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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()); } |