forked from mia/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
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ void FFmpegSourceAudioProvider::LoadAudio(Aegisub::String filename) {
|
||||||
// clean up
|
// clean up
|
||||||
Close();
|
Close();
|
||||||
|
|
||||||
wxString FileNameWX(filename.c_str(), wxConvFile);
|
wxString FileNameWX = wxFileName(wxString(filename.c_str(), wxConvFile)).GetShortPath();
|
||||||
|
|
||||||
// generate a default name for the cache file
|
// generate a default name for the cache file
|
||||||
wxString CacheName = GetCacheFilename(filename.c_str());
|
wxString CacheName = GetCacheFilename(filename.c_str());
|
||||||
|
|
Loading…
Reference in a new issue