Revert r3137 for video_provider_ffmpegsource.cpp; the patch fixed an issue that had already been fixed (by using UTF8 instead of the local codepage).

Originally committed to SVN as r3144.
This commit is contained in:
Karl Blomster 2009-07-15 04:02:15 +00:00
parent ece75e0652
commit 5cb4d1cae3

View file

@ -45,7 +45,6 @@
#include "video_context.h" #include "video_context.h"
#include "options.h" #include "options.h"
#include "aegisub_endian.h" #include "aegisub_endian.h"
#include "charset_conv.h"
#ifdef WIN32 #ifdef WIN32
#include <objbase.h> #include <objbase.h>
#endif #endif
@ -168,7 +167,7 @@ void FFmpegSourceVideoProvider::LoadVideo(Aegisub::String filename, double fps)
throw ErrorMsg; throw ErrorMsg;
} }
VideoSource = FFMS_CreateVideoSource(FileNameWX.mb_str(csConvLocal), TrackNumber, Index, "", Threads, SeekMode, FFMSErrorMessage, MessageSize); VideoSource = FFMS_CreateVideoSource(FileNameWX.mb_str(wxConvUTF8), TrackNumber, Index, "", Threads, SeekMode, FFMSErrorMessage, MessageSize);
FFMS_DestroyIndex(Index); FFMS_DestroyIndex(Index);
Index = NULL; Index = NULL;
if (VideoSource == NULL) { if (VideoSource == NULL) {