summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2011-11-15 08:49:16 +0100
committerDimitar Petrovski <dimeptr@gmail.com>2011-11-15 08:49:16 +0100
commit2d604677001ef55384d3cf236e03e0cf24c7a46a (patch)
tree711ec88d076dc003c51b7bb5e6ffaa4e6ae0324b
parent7c94d16d0dacc16666dd20be2e365a7a363ba8b3 (diff)
downloadvdr-plugin-eepg-2d604677001ef55384d3cf236e03e0cf24c7a46a.tar.gz
vdr-plugin-eepg-2d604677001ef55384d3cf236e03e0cf24c7a46a.tar.bz2
removed some debug logging
changed types
-rw-r--r--eepg.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/eepg.c b/eepg.c
index 33b5fd9..e8d5edb 100644
--- a/eepg.c
+++ b/eepg.c
@@ -540,7 +540,7 @@ char *freesat_huffman_decode (const unsigned char *src, size_t size)
char *uncompressed = (char *) calloc (1, uncompressed_len + 1);
unsigned value = 0, byte = 2, bit = 0;
int p = 0;
- int lastch = START;
+ unsigned char lastch = START;
tableid = src[1] - 1;
while (byte < 6 && byte < size) {
@@ -550,11 +550,11 @@ char *freesat_huffman_decode (const unsigned char *src, size_t size)
//freesat_table_load (); /**< Load the tables as necessary */
do {
- int found = 0;
+ bool found = false;
unsigned bitShift = 0;
if (lastch == ESCAPE) {
char nextCh = (value >> 24) & 0xff;
- found = 1;
+ found = true;
// Encoded in the next 8 bits.
// Terminated by the first ASCII character.
bitShift = 8;
@@ -586,7 +586,7 @@ char *freesat_huffman_decode (const unsigned char *src, size_t size)
uncompressed[p++] = nextCh;
uncompressed[p] = 0;
}
- found = 1;
+ found = true;
lastch = nextCh;
break;
}
@@ -3249,15 +3249,18 @@ cEIT2::cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Dat
f = (unsigned char *) ShortEventDescriptor->name.getData().getData();
decodeText2 (f, l, buffer, sizeof (buffer));
//ShortEventDescriptor->name.getText(buffer, sizeof(buffer));
+ LogD(2, prep("Title: %s Decoded: %s"), f, buffer);
pEvent->SetTitle (buffer);
l = ShortEventDescriptor->text.getLength();
f = (unsigned char *) ShortEventDescriptor->text.getData().getData();
decodeText2 (f, l, buffer, sizeof (buffer));
//ShortEventDescriptor->text.getText(buffer, sizeof(buffer));
pEvent->SetShortText (buffer);
+ LogD(2, prep("ShortText: %s Decoded: %s"), f, buffer);
} else if (!HasExternalData) {
pEvent->SetTitle (NULL);
pEvent->SetShortText (NULL);
+ LogD(2, prep("!HasExternalData"));
}
if (ExtendedEventDescriptors) {
char buffer[Utf8BufSize (ExtendedEventDescriptors->getMaximumTextLength (": ")) + 1];