summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTORS2
-rw-r--r--HISTORY2
-rw-r--r--svdrp.c6
3 files changed, 9 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 8dd50bcd..e4fbf2dc 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -2272,6 +2272,8 @@ Alexander Hans <cleditor@arcor.de>
for reporting that the "'1' for encrypted radio channels" part in the description
of the VPID in vdr.5 is obsolete
for a patch that was used to implement storing the channel name in info.vdr
+ for making the SVDRP command HITK discard any keys if the remote control is currently
+ turned off
Daniel Karsubka <dkar@gmx.de>
for suggesting to write the epg.data file when VDR exits
diff --git a/HISTORY b/HISTORY
index fa8b4092..eb0024e6 100644
--- a/HISTORY
+++ b/HISTORY
@@ -7378,3 +7378,5 @@ Video Disk Recorder Revision History
- The new functions cDevice::CanScaleVideo() and cDevice::ScaleVideo() can be used by
derived output devices to implement scaling the video to a given size and location
(based on a suggestion by Lucian Muresan).
+- The SVDRP command HITK now discards any keys if the remote control is currently
+ turned off (thanks to Alexander Hans).
diff --git a/svdrp.c b/svdrp.c
index ec1497a1..0313280b 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 2.20 2012/12/03 13:49:28 kls Exp $
+ * $Id: svdrp.c 2.21 2012/12/04 12:08:36 kls Exp $
*/
#include "svdrp.h"
@@ -917,6 +917,10 @@ void cSVDRP::CmdHELP(const char *Option)
void cSVDRP::CmdHITK(const char *Option)
{
if (*Option) {
+ if (!cRemote::Enabled()) {
+ Reply(550, "Remote control currently disabled (key \"%s\" discarded)", Option);
+ return;
+ }
char buf[strlen(Option) + 1];
strcpy(buf, Option);
const char *delim = " \t";