mirror of https://github.com/odrling/Aegisub
Use %ld for both wxFileOffset (off_t) and GetTicks() (time_t), also coalesce into a single wxString::Format. This fixes an assert in wx trunk. Unfortunatly it does not fix audio loading due to seperate breakage of libass in r4630:4631. closes #1228.
Originally committed to SVN as r4681.
This commit is contained in:
parent
a32bbab0b6
commit
d3e9a906aa
|
@ -229,9 +229,9 @@ wxString FFmpegSourceProvider::GetCacheFilename(const wxString& _filename)
|
|||
|
||||
wxFileName filename(_filename);
|
||||
|
||||
// Generate string to be hashed
|
||||
wxString toHash = filename.GetFullName() + wxString::Format(_T(":%i"),len)
|
||||
+ wxString::Format(_T(":%i"), filename.GetModificationTime().GetTicks());
|
||||
// Generate string to be hashed //
|
||||
wxString toHash = wxString::Format(_T("%s %ld %ld"), filename.GetFullName(), len, filename.GetModificationTime().GetTicks());
|
||||
|
||||
|
||||
// Get the MD5 digest of the string
|
||||
const wchar_t *tmp = toHash.wc_str();
|
||||
|
|
Loading…
Reference in New Issue