[vlc-commits] gui/skins2: use ThemeLoader::unarchive
Filip Roséen
git at videolan.org
Tue Feb 21 15:55:39 CET 2017
vlc | branch: master | Filip Roséen <filip at atch.se> | Fri Dec 16 13:38:57 2016 +0100| [d70ed82cb965baceacb7b8f2f97e80c410f03ae5] | committer: Jean-Baptiste Kempf
gui/skins2: use ThemeLoader::unarchive
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d70ed82cb965baceacb7b8f2f97e80c410f03ae5
---
modules/gui/skins2/src/theme_loader.cpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/gui/skins2/src/theme_loader.cpp b/modules/gui/skins2/src/theme_loader.cpp
index f6c5f80..a90047e 100644
--- a/modules/gui/skins2/src/theme_loader.cpp
+++ b/modules/gui/skins2/src/theme_loader.cpp
@@ -299,11 +299,9 @@ bool ThemeLoader::extract( const std::string &fileName )
if( tempPath.empty() )
return false;
- // Extract the file in a temporary directory
- if( ! extractTarGz( fileName, tempPath ) &&
- ! extractZip( fileName, tempPath ) )
+ if( unarchive( fileName, tempPath ) == false )
{
- deleteTempFiles( tempPath );
+ msg_Err( getIntf(), "extraction from %s failed", fileName.c_str() );
return false;
}
More information about the vlc-commits
mailing list