]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/scene.c
Add a directory type parameter to config_GetHomeDir
[vlc] / modules / video_filter / scene.c
index dfd3047f13139f1c0eaaa1220d57cb1520bb6b52..6a0d6581bdefc0dcee65db0e34dd6386d9ad8c22 100644 (file)
@@ -193,11 +193,7 @@ static int Create( vlc_object_t *p_this )
     p_sys->psz_prefix = var_CreateGetString( p_this, CFG_PREFIX "prefix" );
     p_sys->psz_path = var_GetNonEmptyString( p_this, CFG_PREFIX "path" );
     if( p_sys->psz_path == NULL )
-    {
-        const char *psz_homedir = config_GetHomeDir();
-        if( psz_homedir )
-            p_sys->psz_path = strdup( psz_homedir );
-    }
+        p_sys->psz_path = config_GetUserDir( VLC_HOME_DIR );
 
     p_filter->pf_video_filter = Filter;