[vlc-commits] skins2: fix unarchive

Thomas Guillem git at videolan.org
Thu Oct 12 13:45:35 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Oct 12 13:28:31 2017 +0200| [8e453e61d60ef990beb32f77f7f8d21b7afd19b3] | committer: Thomas Guillem

skins2: fix unarchive

Tell the stream extractor to read all files and flatten the result.

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

 modules/gui/skins2/src/theme_loader.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/skins2/src/theme_loader.cpp b/modules/gui/skins2/src/theme_loader.cpp
index d18a6ca1a6..d018b4e92e 100644
--- a/modules/gui/skins2/src/theme_loader.cpp
+++ b/modules/gui/skins2/src/theme_loader.cpp
@@ -229,6 +229,8 @@ bool ThemeLoader::unarchive( const std::string& fileName, const std::string &tem
         if( !item || !node )
             return false;
 
+        input_item_AddOption( item.get(), "ignore-filetypes=\"\"", VLC_INPUT_OPTION_TRUSTED );
+        input_item_AddOption( item.get(), "extractor-flatten", VLC_INPUT_OPTION_TRUSTED );
         node->p_item = item.release();
 
         if( vlc_stream_ReadDir( input.get(), node.get() ) )



More information about the vlc-commits mailing list