diff options
| author | Thomas Günther <tom@toms-cafe.de> | 2009-05-24 22:37:07 +0200 |
|---|---|---|
| committer | Thomas Günther <tom@toms-cafe.de> | 2009-05-24 22:37:07 +0200 |
| commit | c522a350dd9b8c9ad33c8d6c8a530099034875dc (patch) | |
| tree | 9c971ffd9a014c3d2d13c00312cb922d4b5e093c | |
| parent | fd5668cf115a40443e5bc9c0b822240891edb566 (diff) | |
| download | vdr-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-- | HISTORY | 2 | ||||
| -rw-r--r-- | txtrecv.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -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 @@ -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; |
