[vlc-commits] addons: fsstorage: strip scheme from catalog path

Francois Cartegnie git at videolan.org
Wed Feb 12 02:36:57 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb 12 02:17:14 2014 +0100| [e462e6242832faea09857a5d11802ab9f2d039e2] | committer: Francois Cartegnie

addons: fsstorage: strip scheme from catalog path

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e462e6242832faea09857a5d11802ab9f2d039e2
---

 modules/misc/addons/fsstorage.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/misc/addons/fsstorage.c b/modules/misc/addons/fsstorage.c
index 558e92d..a207a1e 100644
--- a/modules/misc/addons/fsstorage.c
+++ b/modules/misc/addons/fsstorage.c
@@ -650,8 +650,9 @@ static int LoadCatalog( addons_finder_t *p_finder )
     char *psz_filename = NULL;
     int i_filetype = -1;
 
+    const char *psz_statpath = psz_path + 7; // + scheme
     struct stat stat_;
-    if ( vlc_stat( psz_path, &stat_ ) )
+    if ( vlc_stat( psz_statpath, &stat_ ) )
     {
         free( psz_path );
         return VLC_EGENERIC;



More information about the vlc-commits mailing list