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

Fixed detection of replaying.

This commit is contained in:
Rolf Ahrenberg 2010-10-29 21:16:01 +03:00
parent c3b0254b2e
commit b4673bdece
2 changed files with 4 additions and 3 deletions

View File

@ -407,3 +407,4 @@ VDR Plugin 'femon' Revision History
- Updated for vdr-1.7.16.
- Added Makefile depencency for objects.
- Fixed detection of replaying.

View File

@ -7,7 +7,7 @@
#include <vdr/menu.h>
#include <vdr/remote.h>
#include <vdr/menu.h>
#include <vdr/player.h>
#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) {