X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fmeta_engine%2Ftaglib.cpp;h=22b6ae1773c6ffb2fdf442945625c4d50a187912;hb=bc032f3ca6dc189d41d0e3ba2daf9e4030b62a77;hp=ab11ccece1af5b5dff6c8baba1c21dc34bed6596;hpb=7f3120af8fb80008ee5683c51c36cd5022797b8b;p=vlc diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp index ab11ccece1..22b6ae1773 100644 --- a/modules/meta_engine/taglib.cpp +++ b/modules/meta_engine/taglib.cpp @@ -31,7 +31,6 @@ #include #include /* demux_meta_t */ #include /* vlc_b64_decode_binary */ -#include /* ToLocale, LocaleFree */ #include /* for attachment_new */ #ifdef WIN32 @@ -458,14 +457,7 @@ static int ReadMeta( vlc_object_t* p_this) f = FileRef( wpath ); free( wpath ); #else - const char* local_name = ToLocale( psz_path ); - if( !local_name ) - { - free( psz_path ); - return VLC_EGENERIC; - } - f = FileRef( local_name ); - LocaleFree( local_name ); + f = FileRef( psz_path ); #endif free( psz_path ); @@ -687,11 +679,7 @@ static int WriteMeta( vlc_object_t *p_this ) f = FileRef( wpath ); free( wpath ); #else - const char* local_name = ToLocale( p_export->psz_file ); - if( !local_name ) - return VLC_EGENERIC; - f = FileRef( local_name ); - LocaleFree( local_name ); + f = FileRef( p_export->psz_file ); #endif if( f.isNull() || !f.tag() || f.file()->readOnly() )