From 9276c315058a82481938d336912151f7ef58df1b Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Mon, 15 Aug 2005 23:42:32 +0000 Subject: [PATCH] hopefully fix frequently segfault --- lib/dvb/epgcache.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/dvb/epgcache.cpp b/lib/dvb/epgcache.cpp index 7a1f78dd..28cd855d 100644 --- a/lib/dvb/epgcache.cpp +++ b/lib/dvb/epgcache.cpp @@ -873,6 +873,9 @@ void eEPGCache::channel_data::readData( const __u8 *data) source=eEPGCache::SCHEDULE_OTHER; map=2; break; + default: + eDebug("[EPGC] unknown table_id !!!"); + return; } tidMap &seenSections = this->seenSections[map]; tidMap &calcedSections = this->calcedSections[map]; @@ -887,7 +890,8 @@ void eEPGCache::channel_data::readData( const __u8 *data) default: eDebugNoNewLine("unknown");break; } eDebug(" finished(%d)", time(0)+eDVBLocalTimeHandler::getInstance()->difference()); - reader->stop(); + if ( reader ) + reader->stop(); isRunning &= ~source; if (!isRunning) finishEPG(); -- 2.30.2