From 317c6217b933893659bbf2dc80c74eac357e0bd2 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Mon, 18 Feb 2008 16:00:02 +0000 Subject: [PATCH 1/1] add HACK for wrong transmitted Cablecom EPG! --- lib/dvb/epgcache.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/dvb/epgcache.cpp b/lib/dvb/epgcache.cpp index c5f4830e..fd09c5ed 100644 --- a/lib/dvb/epgcache.cpp +++ b/lib/dvb/epgcache.cpp @@ -460,7 +460,14 @@ void eEPGCache::sectionRead(const __u8 *data, int source, channel_data *channel) if ( data[ptr-1] < 0x40 ) --ptr; - uniqueEPGKey service( HILO(eit->service_id), HILO(eit->original_network_id), HILO(eit->transport_stream_id) ); + // Cablecom HACK .. tsid / onid in eit data are incorrect.. so we use + // it from running service (just for current transport stream eit data) + bool use_eit_chid = data[0] == 0x4F || data[0] > 0x5F; + eDVBChannelID chid = channel->channel->getChannelID(); + uniqueEPGKey service( HILO(eit->service_id), + use_eit_chid ? HILO(eit->original_network_id) : chid.original_network_id.get(), + use_eit_chid ? HILO(eit->transport_stream_id) : chid.transport_stream_id.get() ); + eit_event_struct* eit_event = (eit_event_struct*) (data+ptr); int eit_event_size; int duration; -- 2.30.2