From c67b22e476fbf617cfd6a59fb9894cd059104487 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 26 Aug 2009 00:57:13 +0300 Subject: [PATCH] Put records to download directory Should we use videos instead? --- modules/access_filter/dump.c | 2 +- modules/stream_filter/record.c | 2 +- src/input/es_out.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/access_filter/dump.c b/modules/access_filter/dump.c index fcfb8cabe7..c4b0b5ce22 100644 --- a/modules/access_filter/dump.c +++ b/modules/access_filter/dump.c @@ -271,7 +271,7 @@ static void Trigger (access_t *access) // and there is an off-by-one in the following sprintf(). return; - char *dir = config_GetUserDir( VLC_HOME_DIR ); + char *dir = config_GetUserDir( VLC_DOWNLOAD_DIR ); if( dir == NULL ) return; diff --git a/modules/stream_filter/record.c b/modules/stream_filter/record.c index dee348ac01..8afea210fe 100644 --- a/modules/stream_filter/record.c +++ b/modules/stream_filter/record.c @@ -177,7 +177,7 @@ static int Start( stream_t *s, const char *psz_extension ) /* Retreive path */ char *psz_path = var_CreateGetNonEmptyString( s, "input-record-path" ); if( !psz_path ) - psz_path = config_GetUserDir( VLC_HOME_DIR ); + psz_path = config_GetUserDir( VLC_DOWNLOAD_DIR ); if( !psz_path ) return VLC_ENOMEM; diff --git a/src/input/es_out.c b/src/input/es_out.c index 4f97a92d64..ca866a7d49 100644 --- a/src/input/es_out.c +++ b/src/input/es_out.c @@ -466,7 +466,8 @@ static int EsOutSetRecord( es_out_t *out, bool b_record ) { char *psz_path = var_CreateGetNonEmptyString( p_input, "input-record-path" ); if( !psz_path ) - psz_path = config_GetUserDir(VLC_HOME_DIR); + /* TODO: autoselect video or music dir ? */ + psz_path = config_GetUserDir(VLC_DOWNLOAD_DIR); char *psz_sout = NULL; // TODO conf -- 2.39.2