diff options
| author | Johann Friedrichs <johann.friedrichs@web.de> | 2019-03-22 13:01:17 +0100 |
|---|---|---|
| committer | Johann Friedrichs <johann.friedrichs@web.de> | 2019-03-22 13:01:17 +0100 |
| commit | 5a159b3f0a10f073b24001cb1a5205f84cffb0ff (patch) | |
| tree | 371dec35a3a5b0e486ee5f4cdbecb039bf39ca09 | |
| parent | ff17eae7a150b1420c3eebcf57ed2a407e9626a4 (diff) | |
| download | vdr-plugin-epgsearch-5a159b3f0a10f073b24001cb1a5205f84cffb0ff.tar.gz vdr-plugin-epgsearch-5a159b3f0a10f073b24001cb1a5205f84cffb0ff.tar.bz2 | |
Searchtimers are always local. Thx MarkusE
| -rw-r--r-- | epgsearchtools.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |
