1
0
mirror of https://github.com/rofafor/vdr-plugin-femon.git synced 2023-10-10 13:36:53 +02:00

Fixed a crash in SVDRP (Thanks for Lothar Englisch for reporting).

This commit is contained in:
Rolf Ahrenberg 2013-11-19 22:29:36 +02:00
parent bf222dc7ff
commit 91d6cb4074
2 changed files with 8 additions and 4 deletions

View File

@ -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).

View File

@ -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");