summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-12-25 11:36:44 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-12-25 11:36:44 +0100
commitb936cb366f3bbd7c62327999343e2986af38d2d4 (patch)
tree0738a552a5f916d529890b9707320da87c9e6b95 /vdr.c
parent31e334a332e03b13c648da875e1b91ab8f30154f (diff)
downloadvdr-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
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index e16d902d..a2ede09f 100644
--- a/vdr.c
+++ b/vdr.c
@@ -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);