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:
parent
c3b0254b2e
commit
b4673bdece
1
HISTORY
1
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.
|
||||
|
6
femon.c
6
femon.c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user