diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-10-21 20:41:27 +0200 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-10-21 20:41:27 +0200 |
commit | 1444bd7795170d841f919daea998ea496a5d77c6 (patch) | |
tree | 9ead0b2d44acbfe2ea4734f6fdf66343a8f8cd82 /searchtimer_thread.c | |
parent | d04428ee6ea2ab584eb3b1dd9c8bd1d051137f42 (diff) | |
download | vdr-plugin-epgsearch-1444bd7795170d841f919daea998ea496a5d77c6.tar.gz vdr-plugin-epgsearch-1444bd7795170d841f919daea998ea496a5d77c6.tar.bz2 |
service interface 1.2 and patches by Rolf Ahrenberg
Diffstat (limited to 'searchtimer_thread.c')
-rw-r--r-- | searchtimer_thread.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/searchtimer_thread.c b/searchtimer_thread.c index d890bbd..eb20218 100644 --- a/searchtimer_thread.c +++ b/searchtimer_thread.c @@ -264,6 +264,15 @@ void cSearchTimerThread::Action(void) if ((file = searchExt->BuildFile(pEvent)) != NULL) { while(strstr(file, "!^pipe^!")) file = strreplace(file, "!^pipe^!", "|"); // revert the translation of '|' in BuildFile + if (strstr(file, "!^invalid^!") || strlen(file) == 0) + { + LogFile.eSysLog("Skipping timer due to invalid or empty filename"); + if (time(NULL) <= timer->StopTime()) + pOutdatedTimers->DelTimer(timer); + delete timer; + free(file); + continue; + } timer->SetFile(file); free(file); } |