summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-08-16 15:32:39 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2009-08-16 15:32:39 +0200
commit9b61b20f9a6159150f31c93d65668d6945c21b7a (patch)
tree5cbb9fe371e3d5856da9046cbb04c65903675c69 /channels.c
parentbe3ea311192a736b14729570183b65986f6d0522 (diff)
downloadvdr-9b61b20f9a6159150f31c93d65668d6945c21b7a.tar.gz
vdr-9b61b20f9a6159150f31c93d65668d6945c21b7a.tar.bz2
Implemented full handling of subtitling descriptors
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index 1e857009..590271d6 100644
--- a/channels.c
+++ b/channels.c
@@ -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)