summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2008-01-27 18:00:00 +0100
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2008-01-27 18:00:00 +0100
commite3887083391d10f8cfcd1d8ac65a99d9978f05f2 (patch)
tree85d1b5e0ef75b718143b58184c56c6c8425a1d69 /vdr.c
parentfc4c8740a72e6c7cea5a001e19fdacb63c3cc538 (diff)
downloadvdr-patch-lnbsharing-e3887083391d10f8cfcd1d8ac65a99d9978f05f2.tar.gz
vdr-patch-lnbsharing-e3887083391d10f8cfcd1d8ac65a99d9978f05f2.tar.bz2
Version 1.5.14vdr-1.5.14
- Fixed the Play function in the pictures plugin. - Updated the Finnish OSD texts (thanks to Rolf Ahrenberg). - Updated the Makefile of the skincurses plugin (thanks to Rolf Ahrenberg). - The new option --localedir can be used to set the locale directory at runtime (based on a patch from Stefan Huelswitt). - Fixed finding new transponders (thanks to Winfried Köhler). - Implemented handling of DVB-S2 (thanks to Marco Schlüßler and Reinhard Nissl for a patch that was used to implement this). VDR now requires the "multiproto" DVB driver, e.g. from http://jusst.de/hg/multiproto. - Removed switching to the next higher or lower channel if the current channel is not available, in order to allow staying on an encrypted channel that takes a while for the CAM to start decrypting.
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/vdr.c b/vdr.c
index 05b9e48..2ad3973 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.305 2008/01/13 11:51:53 kls Exp $
+ * $Id: vdr.c 1.307 2008/01/27 14:38:45 kls Exp $
*/
#include <getopt.h>
@@ -198,6 +198,7 @@ int main(int argc, char *argv[])
bool MuteAudio = false;
int WatchdogTimeout = DEFAULTWATCHDOG;
const char *Terminal = NULL;
+ const char *LocaleDir = NULL;
bool UseKbd = true;
const char *LircDevice = NULL;
@@ -229,6 +230,7 @@ int main(int argc, char *argv[])
{ "help", no_argument, NULL, 'h' },
{ "lib", required_argument, NULL, 'L' },
{ "lirc", optional_argument, NULL, 'l' | 0x100 },
+ { "localedir",required_argument, NULL, 'l' | 0x200 },
{ "log", required_argument, NULL, 'l' },
{ "mute", no_argument, NULL, 'm' },
{ "no-kbd", no_argument, NULL, 'n' | 0x100 },
@@ -306,6 +308,14 @@ int main(int argc, char *argv[])
case 'l' | 0x100:
LircDevice = optarg ? optarg : LIRC_DEVICE;
break;
+ case 'l' | 0x200:
+ if (access(optarg, R_OK | X_OK) == 0)
+ LocaleDir = optarg;
+ else {
+ fprintf(stderr, "vdr: can't access locale directory: %s\n", optarg);
+ return 2;
+ }
+ break;
case 'm': MuteAudio = true;
break;
case 'n' | 0x100:
@@ -407,6 +417,8 @@ int main(int argc, char *argv[])
" -L DIR, --lib=DIR search for plugins in DIR (default is %s)\n"
" --lirc[=PATH] use a LIRC remote control device, attached to PATH\n"
" (default: %s)\n"
+ " --localedir=DIR search for locale files in DIR (default is\n"
+ " %s)\n"
" -m, --mute mute audio of the primary DVB device at startup\n"
" --no-kbd don't use the keyboard as an input device\n"
" -p PORT, --port=PORT use PORT for SVDRP (default: %d)\n"
@@ -430,6 +442,7 @@ int main(int argc, char *argv[])
DEFAULTEPGDATAFILENAME,
DEFAULTPLUGINDIR,
LIRC_DEVICE,
+ LOCDIR,
DEFAULTSVDRPPORT,
RCU_DEVICE,
VideoDirectory,
@@ -515,7 +528,7 @@ int main(int argc, char *argv[])
// Initialize internationalization:
- I18nInitialize();
+ I18nInitialize(LocaleDir);
// Main program loop variables - need to be here to have them initialized before any EXIT():
@@ -717,9 +730,7 @@ int main(int argc, char *argv[])
cChannel *Channel = Channels.GetByNumber(cDevice::CurrentChannel());
if (Channel && (Channel->Vpid() || Channel->Apid(0))) {
if (!Channels.SwitchTo(cDevice::CurrentChannel()) // try to switch to the original channel...
- && !(LastTimerChannel > 0 && Channels.SwitchTo(LastTimerChannel)) // ...or the one used by the last timer...
- && !cDevice::SwitchChannel(1) // ...or the next higher available one...
- && !cDevice::SwitchChannel(-1)) // ...or the next lower available one
+ && !(LastTimerChannel > 0 && Channels.SwitchTo(LastTimerChannel))) // ...or the one used by the last timer...
;
}
lastTime = Now; // don't do this too often