summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY2
-rw-r--r--HISTORY.DE2
-rw-r--r--epgsearch.c6
3 files changed, 7 insertions, 3 deletions
diff --git a/HISTORY b/HISTORY
index 6125b24..6d8d994 100644
--- a/HISTORY
+++ b/HISTORY
@@ -136,6 +136,8 @@ fixes:
that have (very) long "short" texts, thanks to Ville Skyttä for providing a patch.
- fixed file descriptor handling when there are errors in SVDRP communication, thanks to
Teemu Rantanen for providing a patch.
+- fixed the service interface for switchtimers because of wrong parameter handling, thanks
+ to gnapheus@vdrportal for reporting.
2008-04-29: Version 0.9.24
diff --git a/HISTORY.DE b/HISTORY.DE
index 70b06b7..177ae77 100644
--- a/HISTORY.DE
+++ b/HISTORY.DE
@@ -144,6 +144,8 @@ fixes:
mit sehr langen Episodennamen, Danke an Ville Skyttä für den Patch.
- Korrektur beim file descriptor handling bei fehlerhafter SVDRP-Verbindung, Danke an
Teemu Rantanen für einen Patch.
+- Service-Schnittstelle für Umschalttimer wegen falschem Parameterhandling korrigiert,
+ Danke an gnapheus@vdrportal für den Hinweis.
2008-04-29: Version 0.9.24
diff --git a/epgsearch.c b/epgsearch.c
index 6109dbb..222a8ce 100644
--- a/epgsearch.c
+++ b/epgsearch.c
@@ -354,7 +354,7 @@ bool cPluginEpgsearch::Service(const char *Id, void *Data)
cSwitchTimer *lTimer = SwitchTimers.InSwitchList(serviceData->event);
if (lTimer) {
serviceData->switchMinsBefore = lTimer->switchMinsBefore;
- serviceData->mode = lTimer->mode;
+ serviceData->announceOnly = lTimer->mode;
} // if
serviceData->success=lTimer!=NULL;
break;
@@ -363,10 +363,10 @@ bool cPluginEpgsearch::Service(const char *Id, void *Data)
cSwitchTimer *lTimer = SwitchTimers.InSwitchList(serviceData->event);
if (lTimer) {
lTimer->switchMinsBefore = serviceData->switchMinsBefore;
- lTimer->mode = serviceData->mode;
+ lTimer->mode = serviceData->announceOnly;
} else {
cMutexLock SwitchTimersLock(&SwitchTimers);
- SwitchTimers.Add(new cSwitchTimer(serviceData->event,serviceData->switchMinsBefore,serviceData->mode));
+ SwitchTimers.Add(new cSwitchTimer(serviceData->event,serviceData->switchMinsBefore,serviceData->announceOnly));
SwitchTimers.Save();
cSwitchTimerThread::Init();
} // if