diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | config.c | 7 | ||||
-rw-r--r-- | config.h | 1 | ||||
-rw-r--r-- | player.c | 3 |
5 files changed, 15 insertions, 1 deletions
@@ -5,6 +5,7 @@ - optical discs are now handled using the red key, the type (audio, dvd, br) is detected automatically - removed the first menu since it's now obsolete +- added argument 's' to tell mpv not to load LUA scripts 2015-06-29: vdr-mpv-0.0.4 - start playback even when audio or video fails, this should give a better @@ -74,6 +74,10 @@ Command line arguments -m text the text displayed in VDR main menu (Default: MPV) +-s + normally mpv tries to autoload LUA scripts, if this parameter is set no scripts are + loaded + Plugin setup options -------------------- @@ -32,6 +32,7 @@ cMpvPluginConfig::cMpvPluginConfig() Languages = "deu,de,ger,eng,en"; PlayListExtString = "m3u,ini,pls,txt,playlist"; MainMenuEntry = "MPV"; + NoScripts = 0; X11Display = ":0.0"; } @@ -62,7 +63,7 @@ int cMpvPluginConfig::ProcessArgs(int argc, char *const argv[]) for (;;) { - switch (getopt(argc, argv, "a:v:h:d:b:l:x:rm:")) + switch (getopt(argc, argv, "a:v:h:d:b:l:x:rm:s")) { case 'a': // audio out AudioOut = optarg; @@ -91,6 +92,9 @@ int cMpvPluginConfig::ProcessArgs(int argc, char *const argv[]) case 'm': MainMenuEntry = optarg; continue; + case 's': + NoScripts = 1; + continue; case EOF: break; case ':': @@ -128,6 +132,7 @@ const char *cMpvPluginConfig::CommandLineHelp(void) " -r\t\tswitch modeline to refresh rate of played file\n" #endif " -m text\ttext displayed in VDR main menu (Default: MPV)\n" + " -s\t\tdon't load mpv LUA scripts\n" ; } @@ -48,6 +48,7 @@ class cMpvPluginConfig string Languages; // language string for audio and subtitle TODO move to Setup menu vector<string> PlaylistExtensions; // file extensions which are recognized as a playlist string MainMenuEntry; // the text displayed in VDR main menu + int NoScripts; // don't load mpv LUA scripts string X11Display; // X11 display used for mpv string TitleOverride; // title to display (ovveride used via service interface) @@ -228,6 +228,9 @@ void cMpvPlayer::PlayerStart() if (PlayShuffle && IsPlaylist(PlayFilename)) check_error(mpv_set_option_string(hMpv, "shuffle", "yes")); + if (MpvPluginConfig->NoScripts) + check_error(mpv_set_option_string(hMpv, "load-scripts", "no")); + #ifdef DEBUG mpv_request_log_messages(hMpv, "info"); #else |