diff options
author | Maniac <na@na.na> | 2015-07-04 00:12:34 +0200 |
---|---|---|
committer | Maniac <na@na.na> | 2015-07-04 00:12:34 +0200 |
commit | 306d10392c3b29977f63f2aa463e11bb35be2097 (patch) | |
tree | 45ca7cc94f5a78c66c5cc3d011db3d4dc93172fe /config.c | |
parent | da407909879f82c15f786bda3fedda0cae892100 (diff) | |
download | vdr-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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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" ; } |