mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Changed the 'languageCode' members in the descriptor classes of 'libsi' to 'char[4]' and setting the 4th byte to 0 for easier handling
This commit is contained in:
@@ -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.4 2004/01/24 14:49:00 kls Exp $
|
||||
* $Id: descriptor.h 1.5 2004/01/24 14:52:05 kls Exp $
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace SI {
|
||||
|
||||
class ShortEventDescriptor : public Descriptor {
|
||||
public:
|
||||
char languageCode[3];
|
||||
char languageCode[4];
|
||||
String name; //name of the event
|
||||
String text; //short description
|
||||
protected:
|
||||
@@ -37,7 +37,7 @@ public:
|
||||
protected:
|
||||
virtual void Parse();
|
||||
};
|
||||
char languageCode[3];
|
||||
char languageCode[4];
|
||||
int getDescriptorNumber();
|
||||
int getLastDescriptorNumber();
|
||||
StructureLoop<Item> itemLoop;
|
||||
@@ -93,7 +93,7 @@ class ParentalRatingDescriptor : public Descriptor {
|
||||
public:
|
||||
class Rating : public LoopElement {
|
||||
public:
|
||||
char languageCode[3];
|
||||
char languageCode[4];
|
||||
int getRating() const;
|
||||
virtual int getLength() { return sizeof(parental_rating); }
|
||||
protected:
|
||||
@@ -258,7 +258,7 @@ public:
|
||||
int getStreamContent() const;
|
||||
int getComponentType() const;
|
||||
int getComponentTag() const;
|
||||
char languageCode[3];
|
||||
char languageCode[4];
|
||||
String description;
|
||||
protected:
|
||||
virtual void Parse();
|
||||
@@ -317,7 +317,7 @@ class MultilingualNameDescriptor : public Descriptor {
|
||||
public:
|
||||
class Name : public LoopElement {
|
||||
public:
|
||||
char languageCode[3];
|
||||
char languageCode[4];
|
||||
String name;
|
||||
virtual int getLength() { return sizeof(entry_multilingual_name)+name.getLength(); }
|
||||
protected:
|
||||
@@ -376,7 +376,7 @@ private:
|
||||
|
||||
class ISO639LanguageDescriptor : public Descriptor {
|
||||
public:
|
||||
char languageCode[3];
|
||||
char languageCode[4];
|
||||
protected:
|
||||
virtual void Parse();
|
||||
private:
|
||||
@@ -436,7 +436,7 @@ public:
|
||||
class NameEntry : public LoopElement {
|
||||
public:
|
||||
virtual int getLength() { return sizeof(descr_application_name_entry)+name.getLength(); }
|
||||
char languageCode[3];
|
||||
char languageCode[4];
|
||||
String name;
|
||||
protected:
|
||||
virtual void Parse();
|
||||
|
Reference in New Issue
Block a user