Commit 576927ef authored by Erwan Tulou's avatar Erwan Tulou

record: more specific record directories (video/music/other)

parent 220f4314
......@@ -466,8 +466,14 @@ static int EsOutSetRecord( es_out_t *out, bool b_record )
{
char *psz_path = var_CreateGetNonEmptyString( p_input, "input-record-path" );
if( !psz_path )
/* TODO: autoselect video or music dir ? */
psz_path = config_GetUserDir(VLC_DOWNLOAD_DIR);
{
if( var_CountChoices( p_input, "video-es" ) )
psz_path = config_GetUserDir( VLC_VIDEOS_DIR );
else if( var_CountChoices( p_input, "audio-es" ) )
psz_path = config_GetUserDir( VLC_MUSIC_DIR );
else
psz_path = config_GetUserDir( VLC_DOWNLOAD_DIR );
}
char *psz_sout = NULL; // TODO conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment