]> git.sesse.net Git - vlc/blobdiff - modules/access_filter/record.c
Remove libvlc->psz_homedir and use config_GetHomeDir() instead
[vlc] / modules / access_filter / record.c
index 70d720f4fd07649708a0718606b95a1c86283081..3e7576291eac1af45b69bbd6f56732d8ce2d6484 100644 (file)
@@ -154,8 +154,7 @@ static int Open( vlc_object_t *p_this )
     if( *psz == '\0' )
     {
         free( psz );
-        if( p_access->p_libvlc->psz_homedir ) /* XXX: This should never happen */
-            psz = strdup( p_access->p_libvlc->psz_homedir );
+        psz = strdup( config_GetHomeDir() );
     }
     p_sys->psz_path = psz;
     msg_Dbg( p_access, "Record access filter path %s", psz );