diff --git a/HISTORY b/HISTORY index 5d8bc1d..e5cebc3 100644 --- a/HISTORY +++ b/HISTORY @@ -475,3 +475,7 @@ VDR Plugin 'femon' Revision History - Updated for vdr-2.0.0. - Added Slovak translation (Thanks to Milan Hrala). + +2013-xx-xx: Version 2.0.1 + +- Fixed a crash in SVDRP (Thanks for Lothar Englisch for reporting). diff --git a/femon.c b/femon.c index 3568aff..ee0676a 100644 --- a/femon.c +++ b/femon.c @@ -204,11 +204,11 @@ cString cPluginFemon::SVDRPCommand(const char *Command, const char *Option, int if (dev2) dev = dev2; } + if (cReplayControl::NowReplaying() || !dev) { + ReplyCode = 550; // Requested action not taken + return cString("Cannot open femon plugin while replaying"); + } if (strcasecmp(Command, "OPEN") == 0) { - if (cReplayControl::NowReplaying()) { - ReplyCode = 550; // Requested action not taken - return cString("Cannot open femon plugin while replaying"); - } if (!cFemonOsd::Instance()) cRemote::CallPlugin(Name()); return cString("Opening femon plugin");