summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.c9
-rw-r--r--menu.c5
2 files changed, 8 insertions, 6 deletions
diff --git a/config.c b/config.c
index 661d4d0f..f4355b37 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c,v 1.22 2007-01-19 14:21:48 phintuka Exp $
+ * $Id: config.c,v 1.23 2007-01-20 18:20:49 phintuka Exp $
*
*/
@@ -14,6 +14,7 @@
#include <getopt.h>
#include <vdr/config.h>
+#include <vdr/videodir.h>
#include "logdefs.h"
#include "config.h"
@@ -297,9 +298,9 @@ config_t::config_t() {
brightness = -1;
overscan = 0;
- strcpy(browse_files_dir, "/video");
- strcpy(browse_music_dir, "/video");
- strcpy(browse_images_dir, "/video");
+ strcpy(browse_files_dir, VideoDirectory);
+ strcpy(browse_music_dir, VideoDirectory);
+ strcpy(browse_images_dir, VideoDirectory);
cache_implicit_playlists = 1;
enable_id3_scanner = 1;
diff --git a/menu.c b/menu.c
index 0645a9c7..88096414 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c,v 1.30 2007-01-07 11:41:48 phintuka Exp $
+ * $Id: menu.c,v 1.31 2007-01-20 18:20:49 phintuka Exp $
*
*/
@@ -15,6 +15,7 @@
#include <vdr/interface.h>
#include <vdr/menu.h>
#include <vdr/plugin.h>
+#include <vdr/videodir.h>
#include "logdefs.h"
#include "config.h"
@@ -132,7 +133,7 @@ void cMenuBrowseFiles::Set(void)
if(m_CurrentDir[0] != '/') {
free(m_CurrentDir);
- m_CurrentDir = strdup("/video");
+ m_CurrentDir = strdup(VideoDirectory);
}
// find deepest accessible directory from path