From a9ff059861df609c3027b3570fd4957cc3b7b42a Mon Sep 17 00:00:00 2001 From: Dave Date: Thu, 16 Aug 2012 07:19:35 +0100 Subject: Added another check for missing event pointer. --- TODO | 1 + vdrtva.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/TODO b/TODO index 5dd9ebb..0c976b7 100644 --- a/TODO +++ b/TODO @@ -19,3 +19,4 @@ Remove reliance on VDR "Housekeeping" callback - causes problems when VDR is bus Bugs: Very rare crash 'pure virtual method called' in plugin - possibly solved. Spurious timer clash report - seen once, cause unknown. + VDR crash under specific circumstances, cannot reproduce elsewhere. diff --git a/vdrtva.c b/vdrtva.c index 9b95d3e..dc66620 100644 --- a/vdrtva.c +++ b/vdrtva.c @@ -760,6 +760,10 @@ bool cPluginvdrTva::CheckSplitTimers(void) // Create a timer from an event, setting VPS parameter explicitly. bool cPluginvdrTva::CreateTimerFromEvent(const cEvent *event, char *Path) { + if (!event) { + dsyslog("vdrtva: CreateTimerFromEvent() called without Event!"); + return false; + } struct tm tm_r; char startbuff[64], endbuff[64], etitle[256]; int flags = tfActive; -- cgit v1.2.3