summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorManiac <na@na.na>2015-07-04 00:12:34 +0200
committerManiac <na@na.na>2015-07-04 00:12:34 +0200
commit306d10392c3b29977f63f2aa463e11bb35be2097 (patch)
tree45ca7cc94f5a78c66c5cc3d011db3d4dc93172fe /config.c
parentda407909879f82c15f786bda3fedda0cae892100 (diff)
downloadvdr-plugin-mpv-306d10392c3b29977f63f2aa463e11bb35be2097.tar.gz
vdr-plugin-mpv-306d10392c3b29977f63f2aa463e11bb35be2097.tar.bz2
added argument to override the main menu text
Diffstat (limited to 'config.c')
-rw-r--r--config.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/config.c b/config.c
index 9fdc834..b56a45b 100644
--- a/config.c
+++ b/config.c
@@ -31,6 +31,7 @@ cMpvPluginConfig::cMpvPluginConfig()
DiscDevice = "/dev/dvd";
Languages = "deu,de,ger,eng,en";
PlayListExtString = "m3u,ini,pls,txt,playlist";
+ MainMenuEntry = "MPV";
X11Display = ":0.0";
}
@@ -61,7 +62,7 @@ int cMpvPluginConfig::ProcessArgs(int argc, char *const argv[])
for (;;)
{
- switch (getopt(argc, argv, "a:v:h:d:b:l:x:r"))
+ switch (getopt(argc, argv, "a:v:h:d:b:l:x:rm:"))
{
case 'a': // audio out
AudioOut = optarg;
@@ -87,6 +88,9 @@ int cMpvPluginConfig::ProcessArgs(int argc, char *const argv[])
case 'r': // refresh rate
RefreshRate = 1;
continue;
+ case 'm':
+ MainMenuEntry = optarg;
+ continue;
case EOF:
break;
case ':':
@@ -123,6 +127,7 @@ const char *cMpvPluginConfig::CommandLineHelp(void)
#ifdef USE_XRANDR
" -r\t\tswitch modeline to refresh rate of played file\n"
#endif
+ " -m text\ttext displayed in VDR main menu (Default: MPV)\n"
;
}