diff options
author | Dimitar Petrovski <dimeptr@gmail.com> | 2011-09-22 17:15:43 +0200 |
---|---|---|
committer | Dimitar Petrovski <dimeptr@gmail.com> | 2011-09-22 17:15:43 +0200 |
commit | cb5620b02a6cacbb38096e23f57e929bf07b722c (patch) | |
tree | 484d23d34941b2844a0ecce7a9de6a860a1d8761 /eepg.c | |
parent | 9c53646dc79a1447fd3201b37412108d7f94ea28 (diff) | |
download | vdr-plugin-eepg-cb5620b02a6cacbb38096e23f57e929bf07b722c.tar.gz vdr-plugin-eepg-cb5620b02a6cacbb38096e23f57e929bf07b722c.tar.bz2 |
fix huffman tables
Diffstat (limited to 'eepg.c')
-rw-r--r-- | eepg.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -10,7 +10,6 @@ * -Freesat patch written by dom /at/ suborbital.org.uk * * - * This code is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. @@ -2847,7 +2846,7 @@ cEIT2::cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Dat return; // only collect data for known channels } - LogD(4, prep("channelID: %s"), *channel->GetChannelID().ToString()); + LogD(4, prep("channelID: %s format:%d"), *channel->GetChannelID().ToString(), Format); #ifdef USE_NOEPG // only use epg from channels not blocked by noEPG-patch @@ -3009,7 +3008,7 @@ cEIT2::cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Dat SI::ShortEventDescriptor * ShortEventDescriptor = NULL; SI::DishDescriptor *DishExtendedEventDescriptor = NULL; SI::DishDescriptor *DishShortEventDescriptor = NULL; - uchar DishTheme = -1, DishCategory = -1; + uchar DishTheme = 0, DishCategory = 0; cLinkChannels *LinkChannels = NULL; @@ -3061,10 +3060,14 @@ cEIT2::cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Dat Contents[NumContents] = ((Nibble.getContentNibbleLevel1() & 0xF) << 4) | (Nibble.getContentNibbleLevel2() & 0xF); NumContents++; } - if (Format == DISH_BEV && DishTheme == -1) { + if (Format == DISH_BEV && NumContents == 1) { DishTheme = Nibble.getContentNibbleLevel2() & 0xF; DishCategory = ((Nibble.getUserNibble1() & 0xF) << 4) | (Nibble.getUserNibble2() & 0xF); + //LogD(2, prep("EEPGDEBUG:DishTheme:%x-DishCategory:%x)"), DishTheme, DishCategory); } + //LogD(2, prep("EEPGDEBUG:Nibble:%x-%x-%x-%x)"), Nibble.getContentNibbleLevel1(),Nibble.getContentNibbleLevel2() + // , Nibble.getUserNibble1(), Nibble.getUserNibble2()); + } pEvent->SetContents(Contents); } @@ -3259,6 +3262,7 @@ cEIT2::cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Dat , DishExtendedEventDescriptor->getTheme(DishTheme) , DishExtendedEventDescriptor->getCategory(DishCategory)); pEvent->SetShortText(tmp); + //LogD(2, prep("EEPGDEBUG:DishTheme:%x-DishCategory:%x)"), DishTheme, DishCategory); free(tmp); } else pEvent->SetShortText(DishExtendedEventDescriptor->getShortText()); |