mirror of
https://code.videolan.org/videolan/vlc
synced 2024-08-31 06:46:39 +02:00
Put records to download directory
Should we use videos instead?
This commit is contained in:
parent
d4db839776
commit
c67b22e476
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user