use wxConvFile for filenames in the ffms providers

Originally committed to SVN as r2380.
This commit is contained in:
Karl Blomster 2008-09-23 20:28:57 +00:00
parent 8107d0c1a9
commit 4a94fa334d
2 changed files with 4 additions and 4 deletions

View File

@ -65,10 +65,10 @@ void FFmpegSourceAudioProvider::LoadAudio(Aegisub::String filename) {
// clean up
Close();
wxString FileNameWX(filename.c_str(), wxConvUTF8);
wxString FileNameWX(filename.c_str(), wxConvFile);
// generate a default name for the cache file
wxString CacheName(filename.c_str());
wxString CacheName(filename.c_str(), wxConvFile);
CacheName.append(_T(".ffindex"));
FrameIndex *Index;

View File

@ -78,10 +78,10 @@ void FFmpegSourceVideoProvider::LoadVideo(Aegisub::String filename, double fps)
// make sure we don't have anything messy lying around
Close();
wxString FileNameWX(filename.c_str(), wxConvUTF8);
wxString FileNameWX(filename.c_str(), wxConvFile);
// generate a name for the cache file
wxString CacheName(filename.c_str());
wxString CacheName(filename.c_str(), wxConvFile);
CacheName.append(_T(".ffindex"));
// try to read index