[vlc-commits] addons/fsstorage: use vlc_stream_NewMRL

Filip Roséen git at videolan.org
Tue May 16 18:45:01 CEST 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Fri Mar 17 03:22:36 2017 +0100| [95812a34cf5a341f8df0ab456c45b81bca3131c8] | committer: Hugo Beauzée-Luyssen

addons/fsstorage: use vlc_stream_NewMRL

fixes: #18131

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/misc/addons/fsstorage.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/misc/addons/fsstorage.c b/modules/misc/addons/fsstorage.c
index 512068ea2b..d9133e4ad3 100644
--- a/modules/misc/addons/fsstorage.c
+++ b/modules/misc/addons/fsstorage.c
@@ -30,6 +30,7 @@
 #include <vlc_plugin.h>
 #include <vlc_modules.h>
 #include <vlc_stream.h>
+#include <vlc_stream_extractor.h>
 #include <vlc_addons.h>
 #include <vlc_fs.h>
 #include <vlc_strings.h>
@@ -220,12 +221,12 @@ static int ListSkins( addons_finder_t *p_finder )
              continue;
 
         char *psz_uri;
-        if( asprintf( &psz_uri, "unzip://%s/%s!/theme.xml", psz_dir, psz_file ) >= 0)
+        if( asprintf( &psz_uri, "file://%s/%s#!/theme.xml", psz_dir, psz_file ) >= 0)
         {
             int i_ret;
             char *psz_name = NULL;
             char *psz_source = NULL;
-            stream_t *p_stream = vlc_stream_NewURL( p_finder, psz_uri );
+            stream_t *p_stream = vlc_stream_NewMRL( p_finder, psz_uri );
             free( psz_uri );
             if ( !p_stream )
             {
@@ -382,7 +383,7 @@ static int InstallFile( addons_storage_t *p_this, const char *psz_downloadlink,
     char buffer[1<<10];
     int i_read = 0;
 
-    p_stream = vlc_stream_NewURL( p_this, psz_downloadlink );
+    p_stream = vlc_stream_NewMRL( p_this, psz_downloadlink );
     if( !p_stream )
     {
         msg_Err( p_this, "Failed to access Addon download url %s", psz_downloadlink );



More information about the vlc-commits mailing list