[vlc-commits] taglib: Allow winstore app to parse non local files
Hugo Beauzée-Luyssen
git at videolan.org
Wed Sep 5 18:19:16 CEST 2018
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Sep 5 16:32:40 2018 +0200| [31e9e3d6ca32c9ee0fb4f7d5617c1c62d3d3e222] | committer: Hugo Beauzée-Luyssen
taglib: Allow winstore app to parse non local files
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=31e9e3d6ca32c9ee0fb4f7d5617c1c62d3d3e222
---
modules/meta_engine/taglib.cpp | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index 123d09c94f..b8465008e0 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -835,15 +835,7 @@ static int ReadMeta( vlc_object_t* p_this)
if( unlikely(psz_uri == NULL) )
return VLC_ENOMEM;
- char *psz_path = vlc_uri2path( psz_uri );
#if VLC_WINSTORE_APP && TAGLIB_VERSION >= TAGLIB_VERSION_1_11
- if( psz_path == NULL )
- {
- free( psz_uri );
- return VLC_EGENERIC;
- }
- free( psz_path );
-
stream_t *p_stream = vlc_access_NewMRL( p_this, psz_uri );
free( psz_uri );
if( p_stream == NULL )
@@ -852,6 +844,7 @@ static int ReadMeta( vlc_object_t* p_this)
VlcIostream s( p_stream );
f = FileRef( &s );
#else /* VLC_WINSTORE_APP */
+ char *psz_path = vlc_uri2path( psz_uri );
free( psz_uri );
if( psz_path == NULL )
return VLC_EGENERIC;
More information about the vlc-commits
mailing list