mirror of
				https://github.com/rofafor/vdr-plugin-femon.git
				synced 2023-10-10 11:36:53 +00:00 
			
		
		
		
	Fixed opening while replaying (Thanks to Antti Seppälä for reporting this one).
This commit is contained in:
		
							
								
								
									
										4
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								HISTORY
									
									
									
									
									
								
							@@ -244,3 +244,7 @@ VDR Plugin 'femon' Revision History
 | 
			
		||||
2007-01-08: Version 1.1.1
 | 
			
		||||
 | 
			
		||||
- Updated for vdr-1.5.0.
 | 
			
		||||
 | 
			
		||||
2007-05-01: Version 1.1.2
 | 
			
		||||
 | 
			
		||||
- Fixed opening while replaying (Thanks to Antti Sepp<70>l<EFBFBD> for reporting this one).
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								femon.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								femon.c
									
									
									
									
									
								
							@@ -6,6 +6,7 @@
 | 
			
		||||
 * $Id$
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include <vdr/menu.h>
 | 
			
		||||
#include <vdr/remote.h>
 | 
			
		||||
#include "femoncfg.h"
 | 
			
		||||
#include "femoni18n.h"
 | 
			
		||||
@@ -72,7 +73,11 @@ cOsdObject *cPluginFemon::MainMenuAction(void)
 | 
			
		||||
{
 | 
			
		||||
  // Perform the action when selected from the main VDR menu.
 | 
			
		||||
  Dprintf("%s()\n", __PRETTY_FUNCTION__);
 | 
			
		||||
  if (cReplayControl::NowReplaying())
 | 
			
		||||
     Skins.Message(mtInfo, tr("Femon not available while replaying"));
 | 
			
		||||
  else
 | 
			
		||||
     return cFemonOsd::Instance(true);
 | 
			
		||||
  return NULL;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool cPluginFemon::SetupParse(const char *Name, const char *Value)
 | 
			
		||||
@@ -160,6 +165,10 @@ const char **cPluginFemon::SVDRPHelpPages(void)
 | 
			
		||||
cString cPluginFemon::SVDRPCommand(const char *Command, const char *Option, int &ReplyCode)
 | 
			
		||||
{
 | 
			
		||||
  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("femon");
 | 
			
		||||
     return cString("Opening femon plugin");
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								femon.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								femon.h
									
									
									
									
									
								
							@@ -11,7 +11,7 @@
 | 
			
		||||
 | 
			
		||||
#include <vdr/plugin.h>
 | 
			
		||||
 | 
			
		||||
static const char VERSION[]       = "1.1.1";
 | 
			
		||||
static const char VERSION[]       = "1.1.2";
 | 
			
		||||
static const char DESCRIPTION[]   = "DVB Signal Information Monitor (OSD)";
 | 
			
		||||
static const char MAINMENUENTRY[] = "Signal Information";
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										22
									
								
								femoni18n.c
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								femoni18n.c
									
									
									
									
									
								
							@@ -2363,6 +2363,28 @@ const tI18nPhrase Phrases[] = {
 | 
			
		||||
    "", // Dansk
 | 
			
		||||
    "", // <20>esky (Czech)
 | 
			
		||||
  },
 | 
			
		||||
  { "Femon not available while replaying", // English
 | 
			
		||||
    "", // Deutsch
 | 
			
		||||
    "", // Slovenski
 | 
			
		||||
    "", // Italiano
 | 
			
		||||
    "", // Nederlands
 | 
			
		||||
    "", // Portugu<67>s
 | 
			
		||||
    "", // Fran<61>ais
 | 
			
		||||
    "", // Norsk
 | 
			
		||||
    "Signaalimittari ei ole k<>ytett<74>viss<73> toiston aikana", // suomi
 | 
			
		||||
    "", // Polski
 | 
			
		||||
    "", // Espa<70>ol
 | 
			
		||||
    "", // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Greek)
 | 
			
		||||
    "", // Svenska
 | 
			
		||||
    "", // Romaneste
 | 
			
		||||
    "", // Magyar
 | 
			
		||||
    "", // Catal<61>
 | 
			
		||||
    "", // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Russian)
 | 
			
		||||
    "", // Hrvatski (Croatian)
 | 
			
		||||
    "", // Eesti
 | 
			
		||||
    "", // Dansk
 | 
			
		||||
    "", // <20>esky (Czech)
 | 
			
		||||
  },
 | 
			
		||||
  { NULL }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user