#include <stdlib.h> /* malloc(), free() */
#include <vlc/vlc.h>
-#include <vlc/intf.h>
+#include <vlc_interface.h>
#include <vlc_meta.h>
-#include <charset.h>
+#include <vlc_playlist.h>
+#include <vlc_input.h>
+#include <vlc_charset.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
*psz_dir = '\0';
}
+ char *psz_path = psz_dir;
+ if( !strncmp( psz_path, "file://", 7 ) )
+ psz_path += 7;
+
for( i = 0; b_have_art == VLC_FALSE && i < 3; i++ )
{
switch( i )
case 0:
/* Windows Folder.jpg */
snprintf( psz_filename, MAX_PATH,
- "file://%sFolder.jpg", psz_dir );
+ "file://%sFolder.jpg", psz_path );
break;
case 1:
/* Windows AlbumArtSmall.jpg == small version of Folder.jpg */
snprintf( psz_filename, MAX_PATH,
- "file://%sAlbumArtSmall.jpg", psz_dir );
+ "file://%sAlbumArtSmall.jpg", psz_path );
break;
case 2:
/* KDE (?) .folder.png */
snprintf( psz_filename, MAX_PATH,
- "file://%s.folder.png", psz_dir );
+ "file://%s.folder.png", psz_path );
break;
}