aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/epgcache.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-08-15 23:42:32 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-08-15 23:42:32 +0000
commit9276c315058a82481938d336912151f7ef58df1b (patch)
tree577070251adcbc79a2e97a13442c36e2aaf948bd /lib/dvb/epgcache.cpp
parentd375f3ea3ead88dcc4f41c6e5c551370cd305755 (diff)
downloadenigma2-9276c315058a82481938d336912151f7ef58df1b.tar.gz
enigma2-9276c315058a82481938d336912151f7ef58df1b.zip
hopefully fix frequently segfault
Diffstat (limited to 'lib/dvb/epgcache.cpp')
-rw-r--r--lib/dvb/epgcache.cpp6
1 files changed, 5 insertions, 1 deletions
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();