summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2009-05-24 22:37:07 +0200
committerThomas Günther <tom@toms-cafe.de>2009-05-24 22:37:07 +0200
commitc522a350dd9b8c9ad33c8d6c8a530099034875dc (patch)
tree9c971ffd9a014c3d2d13c00312cb922d4b5e093c
parentfd5668cf115a40443e5bc9c0b822240891edb566 (diff)
downloadvdr-plugin-osdteletext-c522a350dd9b8c9ad33c8d6c8a530099034875dc.tar.gz
vdr-plugin-osdteletext-c522a350dd9b8c9ad33c8d6c8a530099034875dc.tar.bz2
Fixed problems with VDR >= 1.7.3 (not all teletext pages accessible, 4 GByte VTX files)
-rw-r--r--HISTORY2
-rw-r--r--txtrecv.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 82094b7..eaed041 100644
--- a/HISTORY
+++ b/HISTORY
@@ -8,6 +8,8 @@ VDR Plugin 'osdteletext' Revision History
- If background is configured to completely black or transparent,
toggle between black and transparent only.
- Updated Italian translation provided by Diego Pierotto (Closes #60)
+- Fixed problems with VDR >= 1.7.3 (not all teletext pages accessible,
+ 4 GByte VTX files)
2009-01-10: version 0.8.1
- Small bugfix in channel switching code
diff --git a/txtrecv.c b/txtrecv.c
index 7a401d6..19bec60 100644
--- a/txtrecv.c
+++ b/txtrecv.c
@@ -356,7 +356,7 @@ bool PackedStorage::seekTo(PageID page, int desc, bool create) {
//0 means: no more pages follow
if (create) {
//rewind what was read
- lseek(desc, -(sizeof(addr)), SEEK_CUR);
+ lseek(desc, -(off_t)sizeof(addr), SEEK_CUR);
//update index
addr[index]=page;
if (::write(desc, addr, sizeof(addr)) != sizeof(addr))
@@ -390,7 +390,7 @@ bool PackedStorage::seekTo(PageID page, int desc, bool create) {
//Now, calculate new file size
byteCount += ( actualFileSize(lseek(desc, 0, SEEK_CUR)) - oldSize );
//seek to beginning of data, which is requested
- lseek(desc, -(TELETEXT_PAGESIZE*TOC_SIZE), SEEK_CUR);
+ lseek(desc, -(off_t)(TELETEXT_PAGESIZE*TOC_SIZE), SEEK_CUR);
return true;
} else
return false;