diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-08-16 15:32:39 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-08-16 15:32:39 +0200 |
commit | 9b61b20f9a6159150f31c93d65668d6945c21b7a (patch) | |
tree | 5cbb9fe371e3d5856da9046cbb04c65903675c69 /channels.c | |
parent | be3ea311192a736b14729570183b65986f6d0522 (diff) | |
download | vdr-9b61b20f9a6159150f31c93d65668d6945c21b7a.tar.gz vdr-9b61b20f9a6159150f31c93d65668d6945c21b7a.tar.bz2 |
Implemented full handling of subtitling descriptors
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.c 2.6 2009/04/25 13:57:32 kls Exp $ + * $Id: channels.c 2.7 2009/08/16 15:08:49 kls Exp $ */ #include "channels.h" @@ -533,6 +533,22 @@ void cChannel::SetPids(int Vpid, int Ppid, int Vtype, int *Apids, char ALangs[][ } } +void cChannel::SetSubtitlingDescriptors(uchar *SubtitlingTypes, uint16_t *CompositionPageIds, uint16_t *AncillaryPageIds) +{ + if (SubtitlingTypes) { + for (int i = 0; i < MAXSPIDS; i++) + subtitlingTypes[i] = SubtitlingTypes[i]; + } + if (CompositionPageIds) { + for (int i = 0; i < MAXSPIDS; i++) + compositionPageIds[i] = CompositionPageIds[i]; + } + if (AncillaryPageIds) { + for (int i = 0; i < MAXSPIDS; i++) + ancillaryPageIds[i] = AncillaryPageIds[i]; + } +} + void cChannel::SetCaIds(const int *CaIds) { if (caids[0] && caids[0] <= CA_USER_MAX) |