diff --git a/HISTORY b/HISTORY index af5a489..b0c78af 100644 --- a/HISTORY +++ b/HISTORY @@ -407,3 +407,4 @@ VDR Plugin 'femon' Revision History - Updated for vdr-1.7.16. - Added Makefile depencency for objects. +- Fixed detection of replaying. diff --git a/femon.c b/femon.c index 3956e25..393b1db 100644 --- a/femon.c +++ b/femon.c @@ -7,7 +7,7 @@ #include #include -#include +#include #include "femoncfg.h" #include "femonreceiver.h" #include "femonosd.h" @@ -97,7 +97,7 @@ cOsdObject *cPluginFemon::MainMenuAction(void) { // Perform the action when selected from the main VDR menu. debug("%s()\n", __PRETTY_FUNCTION__); - if (cReplayControl::NowReplaying() || (Channels.Count() <= 0)) + if (cControl::Control() || (Channels.Count() <= 0)) Skins.Message(mtInfo, tr("Femon not available")); else return cFemonOsd::Instance(true); @@ -196,7 +196,7 @@ cString cPluginFemon::SVDRPCommand(const char *Command, const char *Option, int return cString("Cannot open femon plugin while replaying"); } if (!cFemonOsd::Instance()) - cRemote::CallPlugin("femon"); + cRemote::CallPlugin(Name()); return cString("Opening femon plugin"); } else if (strcasecmp(Command, "QUIT") == 0) {