diff options
author | schmirl <schmirl> | 2008-04-08 14:18:15 +0000 |
---|---|---|
committer | schmirl <schmirl> | 2008-04-08 14:18:15 +0000 |
commit | 34a62eb2ef9ba0c9e5d269162772c4223bf5fa3b (patch) | |
tree | 0cb0bc89b73cbb62cfda77aa5a06f7b80691e9d4 /streamdev-server.c | |
parent | 9c60fb4e42bce2fd3b6d7d9c011f1688cddd4394 (diff) | |
download | vdr-plugin-streamdev-34a62eb2ef9ba0c9e5d269162772c4223bf5fa3b.tar.gz vdr-plugin-streamdev-34a62eb2ef9ba0c9e5d269162772c4223bf5fa3b.tar.bz2 |
- added gettext support (thanks to Rolf Ahrenberg)
- added vdr-1.6.0-ignore_missing_cam patch
- dropped obsolete respect_ca patch
- removed legacy code for < VDR 1.5.9 (thanks to Rolf Ahrenberg)
Diffstat (limited to 'streamdev-server.c')
-rw-r--r-- | streamdev-server.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/streamdev-server.c b/streamdev-server.c index 2faca73..40ba309 100644 --- a/streamdev-server.c +++ b/streamdev-server.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: streamdev-server.c,v 1.7 2008/04/07 14:27:27 schmirl Exp $ + * $Id: streamdev-server.c,v 1.8 2008/04/08 14:18:15 schmirl Exp $ */ #include <getopt.h> @@ -12,13 +12,12 @@ #include "server/server.h" #include "server/suspend.h" #include "remux/extern.h" -#include "i18n.h" -#if VDRVERSNUM < 10400 -#error "VDR-1.4.0 or greater is required" +#if !defined(APIVERSNUM) || APIVERSNUM < 10509 +#error "VDR-1.5.9 API version or greater is required!" #endif -const char *cPluginStreamdevServer::DESCRIPTION = "VDR Streaming Server"; +const char *cPluginStreamdevServer::DESCRIPTION = trNOOP("VDR Streaming Server"); cPluginStreamdevServer::cPluginStreamdevServer(void) { @@ -62,9 +61,7 @@ bool cPluginStreamdevServer::ProcessArgs(int argc, char *argv[]) bool cPluginStreamdevServer::Start(void) { - i18n_name = Name(); - RegisterI18n(Phrases); - + I18nRegister(PLUGIN_NAME_I18N); if (!StreamdevHosts.Load(STREAMDEVHOSTSPATH, true, true)) { esyslog("streamdev-server: error while loading %s", STREAMDEVHOSTSPATH); fprintf(stderr, "streamdev-server: error while loading %s\n", STREAMDEVHOSTSPATH); |