if( psz_dir[0] == '~' )
{
char *dir;
- /* This is incomplete : we should also support the ~cmassiot/ syntax. */
- asprintf( &dir, "%s%s", p_intf->p_libvlc->psz_homedir, psz_dir + 1 );
+ asprintf( &dir, "%s%s", config_GetHomeDir(), psz_dir + 1 );
free( psz_dir );
psz_dir = dir;
}