From b4673bdecee59bc8b44668dad1ceb6f2b48ec738 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Fri, 29 Oct 2010 21:16:01 +0300 Subject: [PATCH] Fixed detection of replaying. --- HISTORY | 1 + femon.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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) {