summaryrefslogtreecommitdiff
path: root/pat.c
diff options
context:
space:
mode:
authoretobi <git@e-tobi.net>2010-02-13 00:28:21 +0100
committeretobi <git@e-tobi.net>2013-03-10 13:52:15 +0100
commit321f443bfd3273602e62ecc5f008a7f2a78bb17d (patch)
tree20f0bd5ebf4907291365fbf033b8171cfac13b5e /pat.c
parent0460f10ead868f796e642adf6a3bdc1b6d8ca190 (diff)
downloadvdr-patches-patches/ttxtsubs-vdr-1.7.tar.gz
vdr-patches-patches/ttxtsubs-vdr-1.7.tar.bz2
Diffstat (limited to 'pat.c')
-rw-r--r--pat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pat.c b/pat.c
index 3f89258..d9731f8 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
@@ -562,6 +563,11 @@ 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, Atypes, ALangs, Dpids, Dtypes, DLangs, Spids, SLangs, Tpid);
+ if (NumTPages < MAXTXTPAGES) {
+ int manualPageNumber = cVDRTtxtsubsHookListener::Hook()->ManualPageNumber(Channel);
+ if (manualPageNumber)
+ TeletextSubtitlePages[NumTPages++] = tTeletextSubtitlePage(manualPageNumber);
+ }
Channel->SetTeletextSubtitlePages(TeletextSubtitlePages, NumTPages);
Channel->SetCaIds(CaDescriptors->CaIds());
Channel->SetSubtitlingDescriptors(SubtitlingTypes, CompositionPageIds, AncillaryPageIds);