mirror of https://github.com/odrling/Aegisub
Add (char *) before string constant to silence warning. to ass_read_memory.
Originally committed to SVN as r3453.
This commit is contained in:
parent
77e2eaef04
commit
eb807fea3d
|
@ -116,7 +116,7 @@ void LibassSubtitlesProvider::LoadSubtitles(AssFile *subs) {
|
|||
|
||||
// Load file
|
||||
if (ass_track) ass_free_track(ass_track);
|
||||
ass_track = ass_read_memory(ass_library, &data[0], data.size(),"UTF-8");
|
||||
ass_track = ass_read_memory(ass_library, &data[0], data.size(),(char *)"UTF-8");
|
||||
if (!ass_track) throw _T("libass failed to load subtitles.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue