[vlc-devel] commit: Taglib: assume Windows NT for filesystem access ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Aug 18 19:28:16 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 18 20:21:54 2009 +0300| [28caaf85ca6eb13f9d38cc4863f86f0fea397440] | committer: Rémi Denis-Courmont
Taglib: assume Windows NT for filesystem access
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=28caaf85ca6eb13f9d38cc4863f86f0fea397440
---
modules/meta_engine/taglib.cpp | 29 ++++++++---------------------
1 files changed, 8 insertions(+), 21 deletions(-)
diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index 56d7be7..227ed04 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -329,16 +329,11 @@ static int ReadMeta( vlc_object_t* p_this)
#if defined(WIN32) || defined (UNDER_CE)
- if(GetVersion() < 0x80000000)
- {
- wchar_t wpath[MAX_PATH + 1];
- if( !MultiByteToWideChar( CP_UTF8, 0, p_demux->psz_path, -1, wpath, MAX_PATH) )
- return VLC_EGENERIC;
- wpath[MAX_PATH] = L'\0';
- f = FileRef( wpath );
- }
- else
+ wchar_t wpath[MAX_PATH + 1];
+ if( !MultiByteToWideChar( CP_UTF8, 0, p_demux->psz_path, -1, wpath, MAX_PATH) )
return VLC_EGENERIC;
+ wpath[MAX_PATH] = L'\0';
+ f = FileRef( wpath );
#else
const char* local_name = ToLocale( p_demux->psz_path );
if( !local_name )
@@ -538,19 +533,11 @@ static int WriteMeta( vlc_object_t *p_this )
}
#if defined(WIN32) || defined (UNDER_CE)
- if(GetVersion() < 0x80000000)
- {
- wchar_t wpath[MAX_PATH + 1];
- if( !MultiByteToWideChar( CP_UTF8, 0, export_file , -1, wpath, MAX_PATH) )
- return VLC_EGENERIC;
- wpath[MAX_PATH] = L'\0';
- f = FileRef( wpath );
- }
- else
- {
- free( export_file );
+ wchar_t wpath[MAX_PATH + 1];
+ if( !MultiByteToWideChar( CP_UTF8, 0, export_file , -1, wpath, MAX_PATH) )
return VLC_EGENERIC;
- }
+ wpath[MAX_PATH] = L'\0';
+ f = FileRef( wpath );
#else
const char* local_name = ToLocale( export_file );
if( !local_name )
More information about the vlc-devel
mailing list