mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 17:42:17 +00:00
Add const to ass_read_stream fname argument, the string is not modified.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30740 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
72d18a204f
commit
2b7b000b80
@ -218,7 +218,7 @@ ass_track_t* ass_read_subdata(ass_library_t* library, sub_data* subdata, double
|
||||
return track;
|
||||
}
|
||||
|
||||
ass_track_t* ass_read_stream(ass_library_t* library, char *fname, char *charset) {
|
||||
ass_track_t* ass_read_stream(ass_library_t* library, const char *fname, char *charset) {
|
||||
int i;
|
||||
char *buf = NULL;
|
||||
ass_track_t *track;
|
||||
|
@ -59,7 +59,7 @@ extern int ass_hinting;
|
||||
ass_track_t* ass_default_track(ass_library_t* library);
|
||||
int ass_process_subtitle(ass_track_t* track, subtitle* sub);
|
||||
ass_track_t* ass_read_subdata(ass_library_t* library, sub_data* subdata, double fps);
|
||||
ass_track_t* ass_read_stream(ass_library_t* library, char *fname, char *charset);
|
||||
ass_track_t* ass_read_stream(ass_library_t* library, const char *fname, char *charset);
|
||||
|
||||
void ass_configure(ass_renderer_t* priv, int w, int h, int hinting);
|
||||
void ass_configure_fonts(ass_renderer_t* priv);
|
||||
|
Loading…
Reference in New Issue
Block a user