diff options
author | Tobias Grimm <tobias@e-tobi.loc> | 2009-04-26 16:49:31 +0200 |
---|---|---|
committer | Tobias Grimm <tobias@e-tobi.loc> | 2009-06-20 18:17:43 +0200 |
commit | 05538ee80faf6df4739fffb93e773cd8d6348d26 (patch) | |
tree | 40351cff9f857b77355827bf2fdd4cd49e5bf15f /device.c | |
parent | 135f859d562e74537e3ea0cd46148ff17e033168 (diff) | |
download | vdr-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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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: |