diff --git a/aegisub/src/audio_provider_ffmpegsource.cpp b/aegisub/src/audio_provider_ffmpegsource.cpp index 6b871175d..adf8423d2 100644 --- a/aegisub/src/audio_provider_ffmpegsource.cpp +++ b/aegisub/src/audio_provider_ffmpegsource.cpp @@ -82,7 +82,7 @@ void FFmpegSourceAudioProvider::LoadAudio(Aegisub::String filename) { // clean up Close(); - wxString FileNameWX = wxFileName(wxString(filename.c_str(), wxConvFile)).GetShortPath(); + wxString FileNameWX = wxFileName(wxString(filename.wc_str(), wxConvFile)).GetShortPath(); FFIndexer *Indexer = FFMS_CreateIndexer(FileNameWX.mb_str(wxConvUTF8), FFMSErrMsg, MsgSize); if (Indexer == NULL) { diff --git a/aegisub/src/video_provider_ffmpegsource.cpp b/aegisub/src/video_provider_ffmpegsource.cpp index 56bb9beec..c0677f7e3 100644 --- a/aegisub/src/video_provider_ffmpegsource.cpp +++ b/aegisub/src/video_provider_ffmpegsource.cpp @@ -100,7 +100,7 @@ void FFmpegSourceVideoProvider::LoadVideo(Aegisub::String filename) { // make sure we don't have anything messy lying around Close(); - wxString FileNameWX = wxFileName(wxString(filename.c_str(), wxConvFile)).GetShortPath(); + wxString FileNameWX = wxFileName(wxString(filename.wc_str(), wxConvFile)).GetShortPath(); FFIndexer *Indexer = FFMS_CreateIndexer(FileNameWX.mb_str(wxConvUTF8), FFMSErrMsg, MsgSize); if (Indexer == NULL) { diff --git a/aegisub/src/video_provider_yuv4mpeg.cpp b/aegisub/src/video_provider_yuv4mpeg.cpp index 79af2f648..a45d36c03 100644 --- a/aegisub/src/video_provider_yuv4mpeg.cpp +++ b/aegisub/src/video_provider_yuv4mpeg.cpp @@ -85,7 +85,7 @@ YUV4MPEGVideoProvider::~YUV4MPEGVideoProvider() { void YUV4MPEGVideoProvider::LoadVideo(const Aegisub::String _filename) { Close(); - wxString filename = wxFileName(wxString(_filename.c_str(), wxConvFile)).GetShortPath(); + wxString filename = wxFileName(wxString(_filename.wc_str(), wxConvFile)).GetShortPath(); #ifdef WIN32 sf = _wfopen(filename.wc_str(), _T("rb"));