mirror of https://github.com/odrling/Aegisub
use wxConvFile for filenames in the ffms providers
Originally committed to SVN as r2380.
This commit is contained in:
parent
8107d0c1a9
commit
4a94fa334d
|
@ -65,10 +65,10 @@ void FFmpegSourceAudioProvider::LoadAudio(Aegisub::String filename) {
|
||||||
// clean up
|
// clean up
|
||||||
Close();
|
Close();
|
||||||
|
|
||||||
wxString FileNameWX(filename.c_str(), wxConvUTF8);
|
wxString FileNameWX(filename.c_str(), wxConvFile);
|
||||||
|
|
||||||
// generate a default name for the cache file
|
// generate a default name for the cache file
|
||||||
wxString CacheName(filename.c_str());
|
wxString CacheName(filename.c_str(), wxConvFile);
|
||||||
CacheName.append(_T(".ffindex"));
|
CacheName.append(_T(".ffindex"));
|
||||||
|
|
||||||
FrameIndex *Index;
|
FrameIndex *Index;
|
||||||
|
|
|
@ -78,10 +78,10 @@ void FFmpegSourceVideoProvider::LoadVideo(Aegisub::String filename, double fps)
|
||||||
// make sure we don't have anything messy lying around
|
// make sure we don't have anything messy lying around
|
||||||
Close();
|
Close();
|
||||||
|
|
||||||
wxString FileNameWX(filename.c_str(), wxConvUTF8);
|
wxString FileNameWX(filename.c_str(), wxConvFile);
|
||||||
|
|
||||||
// generate a name for the cache file
|
// generate a name for the cache file
|
||||||
wxString CacheName(filename.c_str());
|
wxString CacheName(filename.c_str(), wxConvFile);
|
||||||
CacheName.append(_T(".ffindex"));
|
CacheName.append(_T(".ffindex"));
|
||||||
|
|
||||||
// try to read index
|
// try to read index
|
||||||
|
|
Loading…
Reference in New Issue