"Fix" an issue that would cause the FFMS2 audio provider to crash when fed with a unicode filename/path. The solution involves getting the "short path", no idea if it works on Unix. Fixes bugtracker issues #810 and #808.

Originally committed to SVN as r2826.
This commit is contained in:
Karl Blomster 2009-04-18 10:54:20 +00:00
parent 3e70c0af81
commit c806ba8d72
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ void FFmpegSourceAudioProvider::LoadAudio(Aegisub::String filename) {
// clean up
Close();
wxString FileNameWX(filename.c_str(), wxConvFile);
wxString FileNameWX = wxFileName(wxString(filename.c_str(), wxConvFile)).GetShortPath();
// generate a default name for the cache file
wxString CacheName = GetCacheFilename(filename.c_str());