summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-10-16 15:16:52 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-10-16 15:16:52 +0200
commitaa1085c0dd4c6d627692263066a06574a66b6655 (patch)
treef7ef50c24b8f710f253b88b02da775c20e3b65b4
parentfe86d58ed8e6f8e2c19cd8ba3c0fdb391716e596 (diff)
downloadvdr-aa1085c0dd4c6d627692263066a06574a66b6655.tar.gz
vdr-aa1085c0dd4c6d627692263066a06574a66b6655.tar.bz2
Now skipping code table info in SI data
-rw-r--r--CONTRIBUTORS3
-rw-r--r--HISTORY1
-rw-r--r--libsi/si.c8
3 files changed, 11 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index edda4d34..37b92fbd 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1087,3 +1087,6 @@ Kimmo Tykkala <tykkala@iki.fi>
Arthur Konovalov <kasjas@hot.ee>
for translating OSD texts to the Estonian language
+
+Milos Kapoun <m.kapoun@cra.cz>
+ for suggesting to skip code table info in SI data
diff --git a/HISTORY b/HISTORY
index d1a9b03f..8649a6a0 100644
--- a/HISTORY
+++ b/HISTORY
@@ -3023,3 +3023,4 @@ Video Disk Recorder Revision History
- Made the "Channel not available!" message and mtInfo instead of mtError (suggested
by Wayne Keer).
- Made volume control more linear (thanks to Emil Naepflein).
+- Now skipping code table info in SI data (suggested by Milos Kapoun).
diff --git a/libsi/si.c b/libsi/si.c
index 20ca1b7a..ba97c6e9 100644
--- a/libsi/si.c
+++ b/libsi/si.c
@@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: si.c 1.12 2004/10/16 09:54:05 kls Exp $
+ * $Id: si.c 1.13 2004/10/16 15:12:57 kls Exp $
* *
***************************************************************************/
@@ -251,6 +251,9 @@ void String::decodeText(char *buffer, int size) {
}
*/
+ if (*from == 0x10)
+ from += 3; // skips code table info
+
for (int i = 0; i < getLength(); i++) {
if (*from == 0)
break;
@@ -275,6 +278,9 @@ void String::decodeText(char *buffer, char *shortVersion, int sizeBuffer, int si
char *toShort=shortVersion;
int IsShortName=0;
+ if (*from == 0x10)
+ from += 3; // skips code table info
+
for (int i = 0; i < getLength(); i++) {
if (*from == 0)
break;