]> git.sesse.net Git - vlc/blobdiff - modules/control/http/http.c
Fix xspf reading/writing
[vlc] / modules / control / http / http.c
index 75f24c2af4c1a22239a57f6ff1d067f1005e0bd5..6987029e4891b108e918a19aba42631a99922b3b 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "http.h"
 #include <vlc_plugin.h>
+#include <vlc_url.h>
 
 #include <assert.h>
 
@@ -787,7 +788,8 @@ int  ArtCallback( httpd_handler_sys_t *p_args,
         psz_art = input_item_GetArtURL( p_item );
     }
 
-    if( psz_art && !strncmp( psz_art, "file://", strlen( "file://" ) ) )
+    if( psz_art && !strncmp( psz_art, "file://", strlen( "file://" ) ) &&
+        decode_URI( psz_art + 7 ) )
     {
         FILE *f;
         char *psz_ext;