]> git.sesse.net Git - vlc/commitdiff
Put records to download directory
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 25 Aug 2009 21:57:13 +0000 (00:57 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 25 Aug 2009 22:00:27 +0000 (01:00 +0300)
Should we use videos instead?

modules/access_filter/dump.c
modules/stream_filter/record.c
src/input/es_out.c

index fcfb8cabe7b62e59adadba963f920aafdeb7efa1..c4b0b5ce22710077e81d1de3f12d3a7300f708e7 100644 (file)
@@ -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;
 
index dee348ac01571b55a23064427c3895c645892368..8afea210fe40510c1c3d4e03aa4750ff5eca0139 100644 (file)
@@ -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;
index 4f97a92d64501d71d05ece2a01e5e70ae8b5f69b..ca866a7d49ffe85195af6a61fcd5998450108d6f 100644 (file)
@@ -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