summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2011-10-23 17:44:26 +0200
committerDimitar Petrovski <dimeptr@gmail.com>2011-10-23 17:44:26 +0200
commit54b9cde7363fa33091166e4d3b47109a30cc8f81 (patch)
tree02a4992f57f7e9cfb5c03dddcdb8af25cd5ba6c7
parentef81a4585a46686c484e275f7063f6af013b096a (diff)
downloadvdr-plugin-eepg-54b9cde7363fa33091166e4d3b47109a30cc8f81.tar.gz
vdr-plugin-eepg-54b9cde7363fa33091166e4d3b47109a30cc8f81.tar.bz2
compile fix
-rw-r--r--dish.c4
-rw-r--r--dish.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/dish.c b/dish.c
index f740e78..83c71dd 100644
--- a/dish.c
+++ b/dish.c
@@ -368,7 +368,7 @@ namespace SI
return critiques[starRating & 0x07];
}
- const char *DishDescriptor::Decompress(unsigned char Tid, CharArray data)
+ unsigned char* DishDescriptor::Decompress(unsigned char Tid, CharArray data)
{
const unsigned char *str = data.getData();
const unsigned char *cmp = NULL;
@@ -386,7 +386,7 @@ namespace SI
if(length <= 0 || !dLength)
return NULL;
- char *decompressed = new unsigned char[dLength + 1];
+ unsigned char* decompressed = new unsigned char[dLength + 1];
HuffmanTable *table;
unsigned int tableSize, numBits;
if (Tid > 0x80) {
diff --git a/dish.h b/dish.h
index 04a8d90..c9fcfe1 100644
--- a/dish.h
+++ b/dish.h
@@ -11,6 +11,7 @@
#define LIBSI_DISH_H
#include <libsi/util.h>
+#include <libsi/descriptor.h>
namespace SI
{
@@ -265,7 +266,7 @@ public:
protected:
// Decompress the byte array and stores the result to a text string
- const char *Decompress(unsigned char Tid, CharArray data);
+ unsigned char* Decompress(unsigned char Tid, CharArray data);
const char* name; // name of the event
const char* shortText; // usually the episode name
const char* description; // description of the event