mirror of https://github.com/odrling/Aegisub
"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:
parent
caa26103f5
commit
65e69a51cf
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue