summaryrefslogtreecommitdiff
path: root/dish.c
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2011-10-26 00:03:37 +0200
committerDimitar Petrovski <dimeptr@gmail.com>2011-10-26 00:03:37 +0200
commitdc9d631a4f9f8ebdf59bbff1729ebc18763d87fb (patch)
tree29a822ea253bb4e41732aa450e0301bad2ec3ad0 /dish.c
parentd7ffd368b513b9fc5e03842add42eb7ded562a61 (diff)
downloadvdr-plugin-eepg-dc9d631a4f9f8ebdf59bbff1729ebc18763d87fb.tar.gz
vdr-plugin-eepg-dc9d631a4f9f8ebdf59bbff1729ebc18763d87fb.tar.bz2
fix compile and warnings
Diffstat (limited to 'dish.c')
-rw-r--r--dish.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dish.c b/dish.c
index 8a046f9..71180e3 100644
--- a/dish.c
+++ b/dish.c
@@ -350,6 +350,8 @@ namespace SI
prefix = "SP";
else if (data[0] == 0x7e)
prefix = "EP";
+ else
+ prefix ="";
programId = new char[17];
seriesId = new char[11];
@@ -357,11 +359,11 @@ namespace SI
sprintf(programId, "%s%08d%04d", (data[0] == 0x7e && episode == 0 ? "SH" : prefix), series, episode);
if (data[0] == 0x7e)
- sprintf(seriesId, "%s08d", prefix, series);
+ sprintf(seriesId, "%s%08d", prefix, series);
if (data.TwoBytes(6) != 0 && data.TwoBytes(6) != 0x9e8b ) {
- originalAirDate = (data[6] << 0x08 | data[7]) - 40587 * 86400;
+ originalAirDate = ((data[6] << 0x08 | data[7]) - 40587) * 86400;
}
}