Add (char *) before string constant to silence warning. to ass_read_memory.

Originally committed to SVN as r3453.
This commit is contained in:
Amar Takhar 2009-09-02 08:06:51 +00:00
parent 77e2eaef04
commit eb807fea3d
1 changed files with 1 additions and 1 deletions

View File

@ -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.");
}