Originally committed to SVN as r2427.

This commit is contained in:
Rodrigo Braz Monteiro 2008-10-28 04:24:45 +00:00
parent 61dc57d0e1
commit 453f3ad816
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ FFmpegSourceVideoProvider::FFmpegSourceVideoProvider(Aegisub::String filename, d
LoadVideo(filename, fps); LoadVideo(filename, fps);
} catch (...) { } catch (...) {
Close(); Close();
//throw; throw;
} }
} }
@ -82,7 +82,7 @@ void FFmpegSourceVideoProvider::LoadVideo(Aegisub::String filename, double fps)
wxString FileNameWX(filename.c_str(), wxConvFile); wxString FileNameWX(filename.c_str(), wxConvFile);
// generate a name for the cache file // generate a name for the cache file
wxString CacheName = GetCacheFilename(filename); wxString CacheName = wxString(GetCacheFilename(filename).c_str(),wxConvFile);
// try to read index // try to read index
Index = FFMS_ReadIndex(CacheName.char_str(), FFMSErrorMessage, MessageSize); Index = FFMS_ReadIndex(CacheName.char_str(), FFMSErrorMessage, MessageSize);