"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 caa26103f5
commit 65e69a51cf

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());