diff options
author | louis <louis.braun@gmx.de> | 2013-09-12 20:41:23 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-09-12 20:41:23 +0200 |
commit | a12491ff265f0128939dbbbceae11461410c8a43 (patch) | |
tree | 37067d89c41f6d1cba5aeecd7c1a40a0aa46bc01 | |
parent | 225d6d6c45680b57707490bbc6b6a1d0bc21ff76 (diff) | |
download | vdr-plugin-tvscraper-a12491ff265f0128939dbbbceae11461410c8a43.tar.gz vdr-plugin-tvscraper-a12491ff265f0128939dbbbceae11461410c8a43.tar.bz2 |
Fixed a crash if a recording without EPG is running
-rw-r--r-- | worker.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -185,7 +185,9 @@ void cTVScraperWorker::CheckRunningTimers(void) { for (cTimer *timer = Timers.First(); timer; timer = Timers.Next(timer)) { if (timer->Recording()) { const cEvent *event = timer->Event(); - scrapType type = GetScrapType(event); + if (!event) + continue; + scrapType type = GetScrapType(event); if (type == scrapSeries) { if (!db->SetRecordingSeries((int)event->EventID())) { if (ConnectScrapers()) { |