From 6552474ca4d3aad8f70b2ca34fabc7cb9d8b0f60 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 26 Mar 2004 15:26:03 +0100 Subject: Added language code handling to the subtitling descriptor in 'libssi' --- libsi/descriptor.c | 6 +++++- libsi/descriptor.h | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libsi/descriptor.c b/libsi/descriptor.c index 51037749..685722e7 100644 --- a/libsi/descriptor.c +++ b/libsi/descriptor.c @@ -6,7 +6,7 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * - * $Id: descriptor.c 1.11 2004/03/20 10:51:49 kls Exp $ + * $Id: descriptor.c 1.12 2004/03/26 15:25:28 kls Exp $ * * ***************************************************************************/ @@ -549,6 +549,10 @@ int SubtitlingDescriptor::Subtitling::getAncillaryPageId() const { void SubtitlingDescriptor::Subtitling::Parse() { s=data.getData(); + languageCode[0]=s->lang_code1; + languageCode[1]=s->lang_code2; + languageCode[2]=s->lang_code3; + languageCode[3]=0; } int ServiceMoveDescriptor::getNewOriginalNetworkId() const { diff --git a/libsi/descriptor.h b/libsi/descriptor.h index 692563fc..db3bba61 100644 --- a/libsi/descriptor.h +++ b/libsi/descriptor.h @@ -6,7 +6,7 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * - * $Id: descriptor.h 1.8 2004/03/20 10:52:22 kls Exp $ + * $Id: descriptor.h 1.9 2004/03/26 15:26:03 kls Exp $ * * ***************************************************************************/ @@ -285,6 +285,7 @@ class SubtitlingDescriptor : public Descriptor { public: class Subtitling : public Descriptor { public: + char languageCode[4]; int getSubtitlingType() const; int getCompositionPageId() const; int getAncillaryPageId() const; -- cgit v1.2.3