diff options
author | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-13 10:47:51 +0100 |
---|---|---|
committer | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-13 10:47:51 +0100 |
commit | e98281852544a159522de0e561ac64c23c447468 (patch) | |
tree | 1fedc0c55429cbdc639f768b34e72a02e6dc9a9d /ttxtsubsreceiver.c | |
parent | 24caa0c99ed1482655d1832d5e23ec69a6d10962 (diff) | |
download | vdr-plugin-ttxtsubs-0.0.3b.tar.gz vdr-plugin-ttxtsubs-0.0.3b.tar.bz2 |
- Work around for problem with stray segments at channel (frequency)v0.0.3b
change with driver in hw_sections=0 mode
- Removed some g++ 3.3 warnings
- Skipping non dvb devices when calculating /dev/dvb/adapter no
Diffstat (limited to 'ttxtsubsreceiver.c')
-rw-r--r-- | ttxtsubsreceiver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ttxtsubsreceiver.c b/ttxtsubsreceiver.c index 494d5c6..b8473e6 100644 --- a/ttxtsubsreceiver.c +++ b/ttxtsubsreceiver.c @@ -196,7 +196,7 @@ void cTtxtSubsReceiver::AddIndexInfo(char *lang, int type, uint16_t page) txtlen = snprintf((char *) buf, 32, "%03x", mIndexPageNo); copy_inv_par(d->data + 8, buf, txtlen); for(int i = txtlen; i < 32; i++) - d->data[i+8] = invtab[' ']; // space already has correct parity + d->data[i+8] = invtab[(unsigned char) ' ']; // space already has correct parity //print_line((char *) mIndexPage[mIndexPageLines]); // XXX @@ -208,7 +208,7 @@ void cTtxtSubsReceiver::AddIndexInfo(char *lang, int type, uint16_t page) txtlen = strlen(header); copy_inv_par(d->data, (uint8_t *) header, txtlen); for(int i = txtlen; i < 40; i++) - d->data[i] = invtab[' ']; // space already has correct parity + d->data[i] = invtab[(unsigned char) ' ']; // space already has correct parity //print_line((char *) mIndexPage[mIndexPageLines]); // XXX @@ -221,7 +221,7 @@ void cTtxtSubsReceiver::AddIndexInfo(char *lang, int type, uint16_t page) if(mIndexPageCol == 0) { init_line(mIndexPage[mIndexPageLines], mIndexPageLines, mIndexPageNo >> 8); for(int i = 0; i < 40; i++) - d->data[i+8] = invtab[' ']; // space already has correct parity + d->data[i+8] = invtab[(unsigned char) ' ']; // space already has correct parity } if(page < 0x100) |