diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-12-25 11:36:44 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-12-25 11:36:44 +0100 |
commit | b936cb366f3bbd7c62327999343e2986af38d2d4 (patch) | |
tree | 0738a552a5f916d529890b9707320da87c9e6b95 | |
parent | 31e334a332e03b13c648da875e1b91ab8f30154f (diff) | |
download | vdr-b936cb366f3bbd7c62327999343e2986af38d2d4.tar.gz vdr-b936cb366f3bbd7c62327999343e2986af38d2d4.tar.bz2 |
Fixed setting the name of the video directory to avoid a crash when using --genindex, and also to use the correct directory with --edit
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | HISTORY | 5 | ||||
-rw-r--r-- | vdr.c | 5 |
3 files changed, 8 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index ee1393f8..96b94eb0 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2149,6 +2149,7 @@ Marko Mäkelä <marko.makela@hut.fi> for fixing a missing initialization in the c'tor of cSkinLCARSDisplayChannel for suggesting to simplify some conditional expressions in skinlcars.c and skinsttng.c for reporting some uninitialized item area coordinates in cSkinLCARSDisplayMenu + for reporting a problem with the video directory not being set correctly with --edit Patrick Rother <krd-vdr@gulu.net> for reporting a bug in defining timers that only differ in the day of week @@ -8032,7 +8032,7 @@ Video Disk Recorder Revision History the last replayed recording (if any) by pressing Ok repeatedly in the Recordings menu. -2013-12-24: Version 2.1.3 +2013-12-25: Version 2.1.3 - Changed the return value of cPositioner::HorizonLongitude() to 0 in case the latitude of the antenna location is beyond +/-81 degrees. @@ -8069,3 +8069,6 @@ Video Disk Recorder Revision History Recordings menu is open (reported by Lars Hanisch). - Added a missing closing ')' in the help and man page entry of the --vfat option (reported by Lars Hanisch). +- Fixed setting the name of the video directory to avoid a crash when using --genindex, + and also to use the correct directory with --edit (the latter reported by Marko + Mäkelä). @@ -22,7 +22,7 @@ * * The project's page is at http://www.tvdr.de * - * $Id: vdr.c 3.6 2013/12/25 11:01:28 kls Exp $ + * $Id: vdr.c 3.7 2013/12/25 11:24:26 kls Exp $ */ #include <getopt.h> @@ -223,6 +223,7 @@ int main(int argc, char *argv[]) VdrUser = VDR_USER; #endif + cVideoDirectory::SetName(VideoDirectory); cPluginManager PluginManager(DEFAULTPLUGINDIR); static struct option long_options[] = { @@ -443,6 +444,7 @@ int main(int argc, char *argv[]) case 'v': VideoDirectory = optarg; while (optarg && *optarg && optarg[strlen(optarg) - 1] == '/') optarg[strlen(optarg) - 1] = 0; + cVideoDirectory::SetName(VideoDirectory); break; case 'w': if (isnumber(optarg)) { int t = atoi(optarg); @@ -663,7 +665,6 @@ int main(int argc, char *argv[]) // Directories: - cVideoDirectory::SetName(VideoDirectory); if (!ConfigDirectory) ConfigDirectory = DEFAULTCONFDIR; cPlugin::SetConfigDirectory(ConfigDirectory); |