summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorTobias Grimm <tobias@e-tobi.loc>2009-04-26 16:49:31 +0200
committerTobias Grimm <tobias@e-tobi.loc>2009-06-20 18:17:43 +0200
commit05538ee80faf6df4739fffb93e773cd8d6348d26 (patch)
tree40351cff9f857b77355827bf2fdd4cd49e5bf15f /device.c
parent135f859d562e74537e3ea0cd46148ff17e033168 (diff)
downloadvdr-patches-patches/ttxtsubs-vdr-1.7.8.tar.gz
vdr-patches-patches/ttxtsubs-vdr-1.7.8.tar.bz2
ttxtsubs: Dropped StripExtendedPackage and moved teletext subtitle processing into PlayPesPacket()patches/ttxtsubs-vdr-1.7.8
Diffstat (limited to 'device.c')
-rw-r--r--device.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/device.c b/device.c
index 1f5908f..fa8dbac 100644
--- a/device.c
+++ b/device.c
@@ -1183,6 +1183,13 @@ int cDevice::PlayPesPacket(const uchar *Data, int Length, bool VideoOnly)
}
break;
case 0xBD: { // private stream 1
+ // EBU Teletext data, ETSI EN 300 472
+ // if PES data header length = 24 and data_identifier = 0x10..0x1F (EBU Data)
+ if (Data[8] == 0x24 && Data[45] >= 0x10 && Data[45] < 0x20) {
+ cVDRTtxtsubsHookListener::Hook()->PlayerTeletextData((uint8_t*)Data, Length);
+ break;
+ }
+
int PayloadOffset = Data[8] + 9;
// Compatibility mode for old subtitles plugin: