From 5a159b3f0a10f073b24001cb1a5205f84cffb0ff Mon Sep 17 00:00:00 2001 From: Johann Friedrichs Date: Fri, 22 Mar 2019 13:01:17 +0100 Subject: Searchtimers are always local. Thx MarkusE --- epgsearchtools.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/epgsearchtools.c b/epgsearchtools.c index 614248a..7890eb4 100644 --- a/epgsearchtools.c +++ b/epgsearchtools.c @@ -428,6 +428,11 @@ bool InEditMode(const char* ItemText, const char* ItemName, const char* ItemValu // checks if the timer was triggered from a search timer and return a pointer to the search cSearchExt* TriggeredFromSearchTimer(const cTimer* timer) { +// searches will create local timers only. +// But, an epgsearch running on a remote VDR might create a timer. And this timer has a search ID ... +// Therefore, we must first ensure that the timer is local + if(timer->Remote()) + return NULL; char* searchID = GetAuxValue(timer, "s-id"); if (!searchID) return NULL; -- cgit v1.2.3