Update of /cvsroot/audacity/audacity-src/src/import In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv22410/src/import
Modified Files: ImportFFmpeg.cpp Log Message: P2: Use unicode-aware URI protocol on Windows for FFmpeg import/export. Index: ImportFFmpeg.cpp =================================================================== RCS file: /cvsroot/audacity/audacity-src/src/import/ImportFFmpeg.cpp,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- ImportFFmpeg.cpp 2 Feb 2009 17:11:04 -0000 1.27 +++ ImportFFmpeg.cpp 8 Mar 2009 12:03:57 -0000 1.28 @@ -364,7 +364,15 @@ FFmpegLibsInst->av_log_set_callback(av_log_wx_callback); +#if defined(__WXMSW__) + const wchar_t* unicode_filename = mName.wc_str(); + char utf8url[1024]; + modify_file_url_to_utf8(utf8url, sizeof(utf8url), unicode_filename); + int err = FFmpegLibsInst->av_open_input_file(&mFormatContext,utf8url,NULL,0, NULL); +#else int err = FFmpegLibsInst->av_open_input_file(&mFormatContext,OSFILENAME(mName),NULL,0, NULL); +#endif + if (err < 0) { wxLogMessage(wxT("FFmpeg : av_open_input_file() failed for file %s"),mName.c_str()); ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Audacity-cvs mailing list Audacity-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/audacity-cvs