]> git.sesse.net Git - vlc/commitdiff
addons: fsstorage: missing check for managed skins files
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 12 Feb 2014 01:24:51 +0000 (02:24 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 12 Feb 2014 01:36:30 +0000 (02:36 +0100)
modules/misc/addons/fsstorage.c

index a207a1eba90924b63acab42c138f6c667390ab7c..c58be0357a8af55d2c5602d03a8924a3a8013d1c 100644 (file)
@@ -64,6 +64,9 @@ static int   OpenLister ( vlc_object_t * );
 static void  CloseLister ( vlc_object_t * );
 
 static int   LoadCatalog ( addons_finder_t * );
+static bool  FileBelongsToManagedAddon( addons_finder_t *p_finder,
+                                        const addon_type_t e_type,
+                                        const char *psz_file );
 /*****************************************************************************
  * Module descriptor
  ****************************************************************************/
@@ -208,6 +211,9 @@ static int ListSkins( addons_finder_t *p_finder )
         if( !psz_file )
             break;
 
+        if ( FileBelongsToManagedAddon( p_finder, ADDON_SKIN2, psz_file ) )
+             continue;
+
         char *psz_uri;
         if( asprintf( &psz_uri, "unzip://%s/%s!/theme.xml", psz_dir, psz_file ) >= 0)
         {