diff options
author | phintuka <phintuka> | 2007-01-20 18:20:49 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-01-20 18:20:49 +0000 |
commit | 9ec49cb826c474fe4afdf5793479dd39e6f3812e (patch) | |
tree | 3641ef2ffa4a7772c722026c5c17fa5395e2e6eb | |
parent | 2c4629a7353ce240080e89d104ece80a6b3e4303 (diff) | |
download | xineliboutput-9ec49cb826c474fe4afdf5793479dd39e6f3812e.tar.gz xineliboutput-9ec49cb826c474fe4afdf5793479dd39e6f3812e.tar.bz2 |
Use VDR VideoDir setting instead of /video (Patch from Ville Skyttä)
-rw-r--r-- | config.c | 9 | ||||
-rw-r--r-- | menu.c | 5 |
2 files changed, 8 insertions, 6 deletions
@@ -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; @@ -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 |