summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2011-09-22 18:38:52 +0200
committerDimitar Petrovski <dimeptr@gmail.com>2011-09-22 18:38:52 +0200
commit3c9b4d23704e9460e7c3a0d5baa2c9d32feee116 (patch)
tree02de0fff5041e454dc709510d81109cf686a0f75
parent35d5843a396a5b3144e3abc2571e150c514801e4 (diff)
downloadvdr-plugin-eepg-3c9b4d23704e9460e7c3a0d5baa2c9d32feee116.tar.gz
vdr-plugin-eepg-3c9b4d23704e9460e7c3a0d5baa2c9d32feee116.tar.bz2
fix compile
-rw-r--r--dish.c7
-rw-r--r--dish.h8
2 files changed, 10 insertions, 5 deletions
diff --git a/dish.c b/dish.c
index 7ea85b1..d24c32f 100644
--- a/dish.c
+++ b/dish.c
@@ -12,9 +12,10 @@
#include "dish.h"
#include <libsi/si.h>
-#include <libsi/descriptor.h>
+//#include <libsi/descriptor.h>
#include <string.h>
#include <stdlib.h>
+#include <vdr/tools.h>
namespace SI
{
@@ -306,8 +307,8 @@ namespace SI
const char *DishDescriptor::getDescription(void) {
string tmp = "";
if (description != NULL) tmp += *description;
- char* rating = getRating();
- if (rating && rating != "") {
+ const char* rating = getRating();
+ if (rating && strcmp(rating,"") != 0) {
if(tmp != "") tmp += "|";
tmp += rating;
}
diff --git a/dish.h b/dish.h
index 7510c67..e6a5b9b 100644
--- a/dish.h
+++ b/dish.h
@@ -10,6 +10,10 @@
#ifndef LIBSI_DISH_H
#define LIBSI_DISH_H
+#include <string>
+#include <libsi/util.h>
+#include <libsi/descriptor.h>
+
namespace SI
{
@@ -267,8 +271,8 @@ protected:
string *shortText; // usually the episode name
string *description; // description of the event
unsigned char *decompressed;
- uchar DishTheme;
- uchar DishCategory;
+ unsigned char DishTheme;
+ unsigned char DishCategory;
uint16_t mpaaRating;
uint16_t starRating;