1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Added language code handling to the subtitling descriptor in 'libssi'

This commit is contained in:
Klaus Schmidinger 2004-03-26 15:26:03 +01:00
parent f12adec8c7
commit 6552474ca4
2 changed files with 7 additions and 2 deletions

View File

@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (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() { void SubtitlingDescriptor::Subtitling::Parse() {
s=data.getData<const item_subtitling>(); s=data.getData<const item_subtitling>();
languageCode[0]=s->lang_code1;
languageCode[1]=s->lang_code2;
languageCode[2]=s->lang_code3;
languageCode[3]=0;
} }
int ServiceMoveDescriptor::getNewOriginalNetworkId() const { int ServiceMoveDescriptor::getNewOriginalNetworkId() const {

View File

@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (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: public:
class Subtitling : public Descriptor { class Subtitling : public Descriptor {
public: public:
char languageCode[4];
int getSubtitlingType() const; int getSubtitlingType() const;
int getCompositionPageId() const; int getCompositionPageId() const;
int getAncillaryPageId() const; int getAncillaryPageId() const;